Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23738 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61586 invoked by uid 1010); 28 May 2006 02:58:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61571 invoked from network); 28 May 2006 02:58:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2006 02:58:49 -0000 X-PHP-List-Original-Sender: xuefer@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.170:63136] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id EB/78-17316-9E119744 for ; Sat, 27 May 2006 22:58:49 -0400 Received: by ug-out-1314.google.com with SMTP id m2so670126ugc for ; Sat, 27 May 2006 19:58:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Gs91QoIQx9LDaNQcTwh9GObf0OxPoGQLYlvIRr+bGfg9BYosYMXvoYZbSgyl8kzk58XXAarkk74rmhQJXajFD9gWiJMfMCQ5L2TmPtCRHPb8JpE2R84We8Au9TcqyHO1WS256W2ssg3NbIdvVCTzsPO42xCb9vgrq4sxCz1nrOY= Received: by 10.78.57.11 with SMTP id f11mr148886hua; Sat, 27 May 2006 19:58:45 -0700 (PDT) Received: by 10.78.66.13 with HTTP; Sat, 27 May 2006 19:58:45 -0700 (PDT) Message-ID: <28139bc0605271958m30a23a60kfc1bae145643fca4@mail.gmail.com> Date: Sun, 28 May 2006 10:58:45 +0800 To: "Steph Fox" Cc: internals In-Reply-To: <11b601c681bd$c1fc3050$6602a8c0@foxbox> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11b601c681bd$c1fc3050$6602a8c0@foxbox> Subject: Re: [PHP-DEV] tsrm_shutdown() and the CLI SAPI From: xuefer@gmail.com (Xuefer) 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);