Re: [PHP4BETA] Session: objects containing objects
| From: | Andrei Zmievski | Date: | Tue, 29 Feb 2000 14:03:30 +0000 |
| Subject: | Re: [PHP4BETA] Session: objects containing objects | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11190@lists.php.net to get a copy of this message | ||
Talk to Zend guys, it's their engine.
On Tue, 29 Feb 2000, Kristian Köhntopp wrote:
>
> 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.
-Andrei
"Everything should be made as simple
as possible, but not simpler."
-- Albert Einstein