Re: Re: cvs: php4 /ext/standard var.c /ext/wddx wddx.c
| From: | Stanislav Malyshev | Date: | Thu, 22 Jun 2000 11:34:19 +0000 |
| Subject: | Re: Re: cvs: php4 /ext/standard var.c /ext/wddx wddx.c | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-21957@lists.php.net to get a copy of this message | ||
>> that would be expensive ('cause we need to create empty
>> classes for every unkonwn class)
In fact, we don't. We just need to create empty class structure and put in
the name. We don't need to fill in any guts of it.
>> > - rename class to stdClass and store the original name in a
>> > member of the instantiated object
>>
>> not perfect - but would work. the only think i don't like
>> about this that that we'll have some "hack" that would be
>> visible in userland.
I'd say the contrary - some hack that it *won't* be visible in
userland. Such fake objects like you are going to create *should not* be
visible for the user. They are only for the purpose of later storing them
back in the session, and *nothing* more. If you wanted to really use them,
you should define that class anyway.
--
Stanislav Malyshev stas@zend.com
+972-3-6139665