At 04:35 PM 10/28/2002 +0100, Thies C. Arntzen wrote:
On Mon, Oct 28, 2002 at 05:24:38PM +0200, Stanislav Malyshev wrote:
> TCA>>     but zval_ptr_dtor (used in assert.c-OnChangeCallback) checks
> TCA>>     against EG(uninitialized_zval_ptr) - so calling zval_ptr_dtor
> TCA>>     anytime before init_executor will cause an UMR.
>
> Actually, zval_ptr_dtor calls zval_dtor, which does much more EG(...)
> games than just EG(uninitialized_zval_ptr). So I guess calling
> zval_ptr_dtor before init_executor is unwise indeed...

    yep - but can we simply move init_executor a bit "up"?
It's called per-request in zend_activate. I think some of the INI stuff is called during module startup (when the thread is started). I'm not sure this can be easily fixed. We might need to initialize it in the EG ctor().

Andi


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to