Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51016 Return-Path: <128bitencrypted@googlemail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30160 invoked from network); 12 Dec 2010 15:47:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2010 15:47:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=128bitencrypted@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=128bitencrypted@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.214.45 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 128bitencrypted@googlemail.com X-Host-Fingerprint: 209.85.214.45 mail-bw0-f45.google.com Received: from [209.85.214.45] ([209.85.214.45:32878] helo=mail-bw0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/A2-09585-F8EE40D4 for ; Sun, 12 Dec 2010 10:47:28 -0500 Received: by bwz16 with SMTP id 16so6177793bwz.32 for ; Sun, 12 Dec 2010 07:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=HkadSPu8mcHgTOUEDIY9iXFyMd57Jd5IiYnfgj3RowM=; b=NiYd4qZEGp3tjCGxcINOdzPKLHJavB5duUsGHTm8DSLIviXWEoI1++ISNA/PxxoZwE xsXS6n/kcGeujSGfjy3M8sITSolKYxkKlpLQdVujr6wyNnGMOBYJLlpkXP6SDH+VM3Cb LYR6z2U+qbLkwD2kjhuRnODWZCYvyPGuIACco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=Qc7qMHE4/XUdia6eYvPU98YibmgJhXt44YMA2wvBMPJ1K1LqNecNqY0afGjhfw4lUi 05sOZpvA1nkxkEgj208IPP86EgMtvkZKxutJ9xeMT5aX8aljFiNjZj0k1ZDD7RiuUc+w d6wK0PliMZCNXKitbD9DdT/+w4CFUQLUXSxaM= Received: by 10.204.152.148 with SMTP id g20mr2848306bkw.209.1292168844378; Sun, 12 Dec 2010 07:47:24 -0800 (PST) Received: from [192.168.178.24] (p5DD288ED.dip0.t-ipconnect.de [93.210.136.237]) by mx.google.com with ESMTPS id a4sm2580987bka.19.2010.12.12.07.47.22 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Dec 2010 07:47:23 -0800 (PST) Message-ID: <4D04EE88.9050104@gmail.com> Date: Sun, 12 Dec 2010 16:47:20 +0100 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: ts_free_thread() frees only temporary in multiple parallel threads From: 128bitencrypted@googlemail.com (Gary Zipfel) (Referring to my posts: #50838 and #50916) Well although I got the feeling no one cares, I finally found a solution to my problem!!! Combining my patch (from post #50916) with the php_embed2 module makes everything working great in multi-threaded usage. The normal php_embed module does not seem to be designed for that. So my final conclusion for the multi-threaded SAPI is the following: - my patch is needed (to avoid false resource allocation) - php_embed2 module is needed (instead of php_embed) - TSRMLS_FETCH() needs to be called at the start of every request - ts_free_thread() should be called at the end of every request But I still would like to get any comment about my patch...