Re: [PHP4BETA] class & object API...

From: Date: Wed, 12 May 1999 20:50:09 +0000
Subject: Re: [PHP4BETA] class & object API...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-822@lists.php.net to get a copy of this message
At 21:07 12/05/99 , Thies C. Arntzen wrote:
is there any sample c-code around that shows how to build objetcs and methods (and traverse them) in php4? i would love to get var_dump work again on objects as i'm using it all the time for debugging....
Not really. Basically, an object is no longer stored in ht, but instead, it's stored in obj.ce and obj.properties. obj.ce is a pointer to a zend_class_entry, which contains all the information about the class the object belongs to. obj.properties is a hash that includes all of its active properties. Unlike PHP 3.0, the properties table and function table is not shared, and the functions table, which is identical for all objects that belong to the class, is stored in the class and not in the object. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#822) next »