Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2106 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27882 invoked from network); 31 May 2003 10:33:07 -0000 Received: from unknown (HELO mailout07.sul.t-online.com) (194.25.134.83) by pb1.pair.com with SMTP; 31 May 2003 10:33:07 -0000 Received: from fwd08.sul.t-online.de by mailout07.sul.t-online.com with smtp id 19M3fe-0001nE-03; Sat, 31 May 2003 12:33:06 +0200 Received: from baumbart.post.rwth-aachen.de (520072483730-0001@[80.142.167.158]) by fwd08.sul.t-online.com with esmtp id 19M3fV-0nuvS4C; Sat, 31 May 2003 12:32:57 +0200 Reply-to:marcus.boerger@post.rwth-aachen.de Message-ID: <5.1.0.14.2.20030531122735.0388ae88@pop.t-online.de> X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 31 May 2003 12:32:55 +0200 To: Uwe Schindler Cc: internals@lists.php.net In-Reply-To: <5.2.0.9.0.20030531011141.02af1838@pop3.web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Sender: 520072483730-0001@t-dialin.net Subject: Re: [PHP-DEV] OnXXXXX handlers not called in ZTS environment From: marcus.boerger@t-online.de ((Marcus =?iso-8859-1?Q?B=F6rger?=)) References: <5.2.0.9.0.20030531011141.02af1838@pop3.web.de> 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