Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33139 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45855 invoked by uid 1010); 14 Nov 2007 15:25:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 45840 invoked from network); 14 Nov 2007 15:25:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2007 15:25:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=helly@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=helly@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 85.214.94.56 as permitted sender) X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 85.214.94.56 aixcept.net Linux 2.6 Received: from [85.214.94.56] ([85.214.94.56:50347] helo=h1149922.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/D8-55670-D631B374 for ; Wed, 14 Nov 2007 10:25:33 -0500 Received: from dhcp-172-28-204-176.zrh.corp.google.com (unknown [193.142.125.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by h1149922.serverkompetenz.net (Postfix) with ESMTP id 7FA5E1B364D; Wed, 14 Nov 2007 16:25:28 +0100 (CET) Date: Wed, 14 Nov 2007 16:25:27 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1007367897.20071114162527@marcus-boerger.de> To: Andrew Minerd CC: internals@lists.php.net In-Reply-To: <20071106125119.6d073e9f@h4x0r.tss> References: <20071106125119.6d073e9f@h4x0r.tss> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [Patch] Allow __sleep to return NULL From: helly@php.net (Marcus Boerger) Hello Andrew, the patches look fine. Can you include the test change in both HEAD and 5.3 version of an updated patch (it got outdated meanwhile). marcus Tuesday, November 6, 2007, 9:51:19 PM, you wrote: > I've attached a patch (both for HEAD and the PHP_5_3 branch) that allows the magic __sleep() > method to return NULL to continue the normal serialization process (all members are > serialized). This allows the __sleep() method to do meaningful cleanup without having to > resort to Reflection overhead. The patch retains the original behavior (E_NOTICE) if anything > other than an array or NULL is returned from the function. > I check the results of a "make test" on the PHP_5_3 branch with and without the patch. I > skipped the results from HEAD because there were so many unrelated failures it was pointless. > The one additional failure in 5.3 with the patch is actually a reverse unit test. I've > included a patch (separately, because it's the same for HEAD and PHP_5_3) to correct the > expected result from this test. > Thanks, > Andrew Best regards, Marcus