Re: [PHP-DEV] tsrm in CLI

2007-08-08 Thread Stanislav Malyshev
The problem here is that compiler/executor globals are allocated in zend_startup, which is called from cli_sapi_module.startup. So what is actually in compiler_globals and executor_globals is either tsrm_ls if they are initialized to 0 or random crap if they aren't. Can anybody explain me where

[PHP-DEV] tsrm in CLI

2007-08-08 Thread Stanislav Malyshev
Hi! I looked at CLI SAPI and found this code, around line 719: #ifdef ZTS compiler_globals = ts_resource(compiler_globals_id); executor_globals = ts_resource(executor_globals_id); core_globals = ts_resource(core_globals_id); sapi_globals = ts_resource(sapi_globals