Re: [PHP4BETA] ZTS stuff in main.c
| From: | Zeev Suraski | Date: | Wed, 18 Aug 1999 20:58:22 +0000 |
| Subject: | Re: [PHP4BETA] ZTS stuff in main.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3559@lists.php.net to get a copy of this message | ||
It's ok actually. The TSRM layer must be initialized before zend_startup() is called, and has nothing to do with zend_startup(). You'd notice that both the CGI main.c and ISAPI's php4isapi.c call tsrm_startup() right in the very beginning, before calling the module startup. The reason for this is simple - you may want to use globals before the PHP callback is called, in places like DllMain().
Zeev
At 19:10 18/08/99 , Thies C. Arntzen wrote:
in php_module_startup() we do a ELS_FETCH(); before zend_startup(..) is called - which is bad 'cause the executor_globals are allocated in zend_startup. i'm not deep enough in that (yet) - zeev, andi what shall i do? tc-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.ilThies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany-- PHP 4 Beta