Reply to Re: Question of PHP-4 vs PHP-5

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация