Re: [PHP-DEV] Re: static members of internal classes

2005-07-26 Thread Michael Wallner
Hi Andi Gutmans, you wrote: >> Also zval_internal_dtor() implies that one cannot set >> a static member of a ZEND_INTERNAL_CLASS to be a stream, >> array etc... > > > Yes, that's correct. It's a limitation you have to live with because > those datastructures are destroyed at the end of the request

Re: [PHP-DEV] Re: static members of internal classes

2005-07-25 Thread Andi Gutmans
At 09:50 AM 7/22/2005 +0200, Michael Wallner wrote: Also zval_internal_dtor() implies that one cannot set a static member of a ZEND_INTERNAL_CLASS to be a stream, array etc... Yes, that's correct. It's a limitation you have to live with because those datastructures are destroyed at the end of

Re: [PHP-DEV] Re: static members of internal classes

2005-07-22 Thread Michael Wallner
Hi Marcus Boerger, you wrote: > Hello Michael, > > sure but there's a difference Reflection whatever is only run during > request time, what you want is running outside and require malloc rather > than emalloc. Thanks, I already adjusted my code according to that. But guess, I've still not solv

Re: [PHP-DEV] Re: static members of internal classes

2005-07-22 Thread Marcus Boerger
Hello Michael, sure but there's a difference Reflection whatever is only run during request time, what you want is running outside and require malloc rather than emalloc. Thursday, July 21, 2005, 4:30:59 PM, you wrote: > I wrote: >> I have some issues with static members of internal classes.

Re: [PHP-DEV] Re: static members of internal classes

2005-07-22 Thread Michael Wallner
Hi, I wrote: > Isn't the behaviour of ReflectionClass then bogus, because > it doesn't care about ZEND_INTERNAL_CLASSes? And... shouldn't there be a cleanup for static members of ZEND_INTERNAL_CLASSes to reset the contents to the declared values? Also zval_internal_dtor() implies that one canno

Re: [PHP-DEV] Re: static members of internal classes

2005-07-22 Thread Michael Wallner
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 ali

RE: [PHP-DEV] Re: static members of internal classes

2005-07-21 Thread Dmitry Stogov
hanks. Dmitry. > -Original Message- > From: Michael Wallner [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 21, 2005 11:25 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: static members of internal classes > > > Hi I wrote: > > > I wrote: >

[PHP-DEV] Re: static members of internal classes

2005-07-21 Thread Michael Wallner
Hi I wrote: > I wrote: > > >>I have some issues with static members of internal classes. >>AFAICS no extension uses them so far (did I miss something?). > > I cannot declare static properties as strings because that causes > memory errors in zval_dtor() (SET_STATIC_PROP_EX code is actually > the s

[PHP-DEV] Re: static members of internal classes

2005-07-21 Thread Michael Wallner
I wrote: > I have some issues with static members of internal classes. > AFAICS no extension uses them so far (did I miss something?). I cannot declare static properties as strings because that causes memory errors in zval_dtor() (SET_STATIC_PROP_EX code is actually the same as in ReflectionClass