Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46043 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38033 invoked from network); 15 Nov 2009 20:36:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Nov 2009 20:36:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.158 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 72.14.220.158 fg-out-1718.google.com Received: from [72.14.220.158] ([72.14.220.158:21866] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/17-32236-556600B4 for ; Sun, 15 Nov 2009 15:36:38 -0500 Received: by fg-out-1718.google.com with SMTP id d23so1944460fga.11 for ; Sun, 15 Nov 2009 12:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=+cc5nFEBHxQNt07B24sIe8yKHRPx+bKM/L55EC38Nw4=; b=MDFrocVe2hLil3T8IkJuJ0z1RmEnJQcZX5aYRjmrT61kHFlo2reOvHU8svxzX7cQTe eZPIqFbGDIUcRctC6NajV2PJaNmfHAN47cJtHVHLzqDAap+8tBCswx4kSi1jpbuTb3UV 0CRq0sNPHgzZ7qoPz0+NSVwIAsihnSQd5Ee3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eiJ4g6kmAF33kHJX2x6jww9NbcTvXarwsuisPjgJVbKRPrvvJjdhttzeWPnbmeSXm3 NwtRChL1Q2QTMojLmeQWJJKY9Mt48Kpa1NnW6dYJQrYHOvxSmNI11fa4mliHSCnCzMWY fRjiZ53EgdedxMub+Tx5ezadHGAbzpm8tRzHo= MIME-Version: 1.0 Received: by 10.216.86.14 with SMTP id v14mr2211440wee.183.1258317394556; Sun, 15 Nov 2009 12:36:34 -0800 (PST) In-Reply-To: <16bf97b10911130226x25c16bd9xbe21d33f3937e7e3@mail.gmail.com> References: <16bf97b10911130226x25c16bd9xbe21d33f3937e7e3@mail.gmail.com> Date: Sun, 15 Nov 2009 18:36:34 -0200 Message-ID: <46ccd1ab0911151236l5bb7020fma64b1115fafb4419@mail.gmail.com> To: Pierrick Charron Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e6d7eb6851383204786ed98f Subject: Re: [PHP-DEV] Patch for bug #49936 From: felipensp@gmail.com (Felipe Pena) --0016e6d7eb6851383204786ed98f Content-Type: text/plain; charset=UTF-8 Hi Pierrick, 2009/11/13 Pierrick Charron > Hi, > > I created a patch for the bug #49936. > > The problem was due to the new way to manage references of stream context. > The patch increase the refcount of the context when it's assigned to a > stream (in the method php_stream_context_set). > A zend_list_delete is already called on the context when the stream is > destroyed to do the opposit. > > There is two different version of the patch. The better one (because > it's not using TSRMLS_FETCH) modify the php_stream_context_set which > may be used by some of the PECL extensions. And of course the second > version of the patch use TSRMLS_FETCH to avoid signature modification. > > http://www.adoy.net/php/stream-nofetch.diff > http://www.adoy.net/php/stream-fetch.diff > > I also wrote two phpt for this bug : > > http://www.adoy.net/php/phpt/bug49936-phpt.tgz > > Thanks for feedbacks. > Pierrick > > > Committed! Thanks for the patch again! -- Regards, Felipe Pena --0016e6d7eb6851383204786ed98f--