Re: [PHP4BETA] Session: objects containing objects

From: Date: Tue, 29 Feb 2000 11:30:43 +0000
Subject: Re: [PHP4BETA] Session: objects containing objects
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.version4 
Request: Send a blank email to php-version4+get-11180@lists.php.net to get a copy of this message
Andrei Zmievski wrote: > > get_class_vars(foo); > > Zend does not add properties which don't have default values. So if a > class is declared as: > class foo { > var $bar; > } > > "bar" is not entered into the properties table. May I suggest that this be changed, for two reasons: - To get a proper get_class_vars(). - To be able to receive a warning when an object assigns $this->blah a value when only $this->foo and $this->bar have been declared. Especially the warning thing would be very useful. Kristian -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

« previous php.version4 (#11180) next »