Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23812 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2356 invoked by uid 1010); 31 May 2006 04:23:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2341 invoked from network); 31 May 2006 04:23:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2006 04:23:57 -0000 X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:11909] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 08/FA-07504-C5A1D744 for ; Wed, 31 May 2006 00:23:57 -0400 Received: (qmail 4001 invoked from network); 31 May 2006 04:23:31 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 31 May 2006 04:23:31 -0000 Message-ID: <7.0.1.0.2.20060530212314.038819c8@zend.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Tue, 30 May 2006 21:23:46 -0700 To: "Steph Fox" ,"Xuefer" Cc: "internals" In-Reply-To: <126f01c68203$691f9cb0$6602a8c0@foxbox> References: <11b601c681bd$c1fc3050$6602a8c0@foxbox> <28139bc0605271958m30a23a60kfc1bae145643fca4@mail.gmail.com> <126f01c68203$691f9cb0$6602a8c0@foxbox> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI From: andi@zend.com (Andi Gutmans) Without looking to deeply into this reincarnation my guess would be that for CLI, Zeev's approach makes good sense. Andi At 08:04 PM 5/27/2006, Steph Fox wrote: >Thanks Xuefer... > >This bug's been extant for a long time, and I only found out why >when I spent two days/nights trying to track down its history and mechanics. > >It's a pig. > >- Steph > >----- Original Message ----- From: "Xuefer" >To: "Steph Fox" >Cc: "internals" >Sent: Sunday, May 28, 2006 4:58 AM >Subject: Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI > > >>i can confirm this on other extension. >>something like this >>grep free_id */*.c -B1 -A3 >>mbstring/mbstring.c-#ifdef ZTS >>mbstring/mbstring.c: ts_free_id(mbstring_globals_id); >>mbstring/mbstring.c-#else >>mbstring/mbstring.c- _php_mb_globals_dtor(&mbstring_globals TSRMLS_CC); >>mbstring/mbstring.c-#endif >>have no problem with it >>while some modules like >>$ grep 'ndef ZTS' */*.c -A2 >>apc/php_apc.c:#ifndef ZTS >>apc/php_apc.c- php_apc_shutdown_globals(&apc_globals); >>apc/php_apc.c-#endif >>- >>eaccelerator/eaccelerator.c:#ifndef ZTS >>eaccelerator/eaccelerator.c- >>eaccelerator_globals_dtor(&eaccelerator_globals TSRMLS_CC); >>eaccelerator/eaccelerator.c-#endif >>when compiled as shared module, will crash >>eaccelerator(mmcache) workaround it by disabling the dtor. >>/*??? FIXME >> ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, >>eaccelerator_globals_dtor); >>*/ >> ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, NULL); > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php