You are here: Re: Question of PHP-4 vs PHP-5 « PHP Programming Language « IT news, forums, messages
Re: Question of PHP-4 vs PHP-5

Posted by tony on 10/14/09 11:47

In article <1147385803.897554.68210@g10g2000cwb.googlegroups.com>,
chernyshevsky@hotmail.com says...
>
> 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)
>
> The "Object ..." string is the result of PHP converting an object to a
> string. The id # in PHP5 is a new feature. Internally, the Zend 2
> engine keeps track of all objects in an array. An object's id is its
> place within that array.
>
> The object id is useful for debugging purpose. It also give you a way
> to use objects as keys to a hash table.
>
>
Aha - thanks Chung - that makes more sense to me now.
(I really must make time to get into classes soon - but thats the
catch 22 I guess - do I make time or just keep working !)

tony

 

Navigation:

[Reply to this 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

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