Re: Re: static members of internal classes
| From: | Michael Wallner | Date: | Fri, 22 Jul 2005 07:34:01 +0000 |
| Subject: | Re: Re: static members of internal classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-17374@lists.php.net to get a copy of this message | ||
Hi Dmitry Stogov, you wrote:
> Hi Michael,
>
> It is not a bug. You understood proper. Internal classes are stored in
> regular heap and they don't use e[memory] function family.
> This is done, because memory allocated by emalloc is freed after each
> request, but internal classes should still alive in global class table.
Thank you very much for your answer, Dmitry.
I guess I got the clue now -- that basically means,
that I must not use e[memfuncs] for static properties, right?
Isn't the behaviour of ReflectionClass then bogus, because
it doesn't care about ZEND_INTERNAL_CLASSes?
May I suggest, that the zend engine provides some more
sophisticated routines to modify/retreive static
poperties, i.e. "transformation" from dynamic zvals
to internal ones?
Thanks a lot,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc