Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:66892 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59047 invoked from network); 2 Apr 2013 16:03:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2013 16:03:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.43 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-la0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:43884] helo=mail-la0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/52-56336-F510B515 for ; Tue, 02 Apr 2013 11:03:44 -0500 Received: by mail-la0-f43.google.com with SMTP id ek20so555122lab.16 for ; Tue, 02 Apr 2013 09:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=rgsKGvRRS0+hU7CeNZVw0FnDFZrUYZXJBIqeMUTwGwU=; b=jHbh+y1n3gSGFter4QitaKcn5YyBbJQHTrQy8M2uZj5pGc2CGGI5KXEn4PUed+6diR OsDmCnxXnZ0FWXIBQCaXyhIBPcKIKa7yJeSxa9/wFJjF3pQuRqeTmQoMf5g3XDQnkVmD 9yZvY3QIdUP2Uqe2FMfNIhdqRG39k9nr5xcDAYjDWr8bXVxSBoo1Ou6OpW+FKzJDgEq9 7ZxeuwmG24iBkvKoaQbUzZbrTsE0bvJZms2caxdNxoxFrDjqY3Rel4YZ663/m2dvVmFF qLjfo+DcUX8a4go/BEYTmglmrWZ7hFoHTuoZ1Lq2UBP6tlJgAUqN5saZ0U22WXPlB0r/ K7kg== MIME-Version: 1.0 X-Received: by 10.112.37.194 with SMTP id a2mr8120022lbk.40.1364918620755; Tue, 02 Apr 2013 09:03:40 -0700 (PDT) Received: by 10.112.163.40 with HTTP; Tue, 2 Apr 2013 09:03:40 -0700 (PDT) In-Reply-To: References: <0728f531a623e3f9b7f0897a9c6fabb7.squirrel@webmail.klapt.com> Date: Tue, 2 Apr 2013 18:03:40 +0200 Message-ID: To: Anatoliy Belsky Cc: Derick Rethans , Gustavo Lopes , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Fix for bug #63437 From: pierre.php@gmail.com (Pierre Joye) hi, On Thu, Mar 14, 2013 at 4:32 PM, Anatol Belski wrote: >> One doubt I have yet after investigating on #62852 is that issuing >> php_error isn't recoverable, it might be much better to throw exception in >> __wakeup(), just like __construct() does. This question crosses both >> #62852 and #53437. That would work for 5.5 as unserialize() cares about >> exceptions in __wakeup(), in 5.4 and less php_error seems to be a better >> way. What do you think? >> > > I've reuploaded the patch, removed that extra checks, fixed the relevant > tests, removed XFAIL from bug53437.phpt and added three more. > > https://bugs.php.net/patch-display.php?bug_id=53437&patch=date_patch_var4.patch&revision=latest Tests pass, crashes are gone and the patch meets the requirements Derick asked earlier. If there is no further objection until next Monday I will ask Anatolyi to apply it and finally fix one of the only remaining known crash in 5.3/4, and indeed 5.5 and master (but there are other there :). Cheers, -- Pierre @pierrejoye