Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19169 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49469 invoked by uid 1010); 26 Sep 2005 13:06:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49453 invoked from network); 26 Sep 2005 13:06:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2005 13:06:38 -0000 X-Host-Fingerprint: 212.183.32.191 M2406P031.adsl.highway.telekom.at Received: from ([212.183.32.191:24751] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 35/D0-24510-B52F7334 for ; Mon, 26 Sep 2005 09:06:36 -0400 Message-ID: <35.D0.24510.B52F7334@pb1.pair.com> To: internals@lists.php.net Date: Mon, 26 Sep 2005 15:06:21 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 References: <79.1A.24510.546D2334@pb1.pair.com> <91.71.24510.E9A93334@pb1.pair.com> <003501c5c064$4782bc60$5c8be5a9@ohr.berkeley.edu> In-Reply-To: <003501c5c064$4782bc60$5c8be5a9@ohr.berkeley.edu> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Posted-By: 212.183.32.191 Subject: Re: [PATCH] imap_savebody() From: mike@php.net (Michael Wallner) Hi Sara Golemon, you wrote: > Getting there, but you can make it work for ZTS mode. Just create a proxy > for the gets function which is always set, then have the proxy do a > TSRMLS_FETCH() and examine an extension global (e.g. IMAPG(gets_mode) or > whatever) to determine whether it's in savebody() and should shuttle to your > new gets function, or if it's not in savebody() and should dispatch to the > "original" method. Thanks for your input, Sara. The new patch can be found at: http://dev.iworks.at/PATCHES/imap_savebody_TS.patch.txt Regards, -- Michael - < mike(@)php.net >