Re: OnXXXXX handlers not called in ZTS environment
| From: | (Marcus Börger) | Date: | Sat, 31 May 2003 10:32:55 +0000 |
| Subject: | Re: OnXXXXX handlers not called in ZTS environment | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2106@lists.php.net to get a copy of this message | ||
At 01:18 31.05.2003, Uwe Schindler wrote:
When changing a ini entry with zend_alter_ini_entry during runtime the Callback routines OnUpdateXXXX are never called. This problem only exists in multithreaded environments. I think that the handler field in the entry is not copied when creating the copy of the ini entries after creating a new thread ressource:The zend_hash_copy() function copies the all the information so the problem should be elsewhere. [...]
I am not very familar with the Zend engine so I do not know how to implement this, but the following command does not ever call the OnUpdate handler: zend_alter_ini_entry(....., PHP_INI_SYSTEM, PHP_INI_STAGE_RUNTIME)And here we go: PHP_INI_SYSTEM values cannot be set at runtime, that's their sense. regards marcus