Posted by Colin McKinnon on 11/19/86 11:47
tony@tony.com wrote:
>
> When debugging the blowfish utility I noticed that
>
> $bf = new Crypt_Blowfish($mykey);
> echo("BF: " . $bf");
>
> Outputs the word "OBJECT" on a PHP-4 linux system
>
> and "OBJECT id #1" on a windoze PHP-5 system
>
> Can anyone confirm this is correct and even better -
> explain what the output of each is please
> (I dont understand PHP classes yet)
Yes, both are correct, but the question is wrong - if you want to describe
an object then give it a method to describe itself. If you want to see
inside an object then use the var_export() fn.
The difference is related to the change in how objects are referenced in the
different PHP versions.
C.
[Back to original message]
|