Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31987 invoked from network); 18 Jun 2014 17:06:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2014 17:06:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fedoraproject.org from 217.70.183.197 cause and error) X-PHP-List-Original-Sender: remi@fedoraproject.org X-Host-Fingerprint: 217.70.183.197 relay5-d.mail.gandi.net Linux 2.6 Received: from [217.70.183.197] ([217.70.183.197:38393] helo=relay5-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/21-23092-727C1A35 for ; Wed, 18 Jun 2014 13:06:48 -0400 Received: from mfilter10-d.gandi.net (mfilter10-d.gandi.net [217.70.178.139]) by relay5-d.mail.gandi.net (Postfix) with ESMTP id 5552641C080 for ; Wed, 18 Jun 2014 19:06:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter10-d.gandi.net Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by mfilter10-d.gandi.net (mfilter10-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id FnVt2pqG1bsl for ; Wed, 18 Jun 2014 19:06:42 +0200 (CEST) X-Originating-IP: 82.241.130.121 Received: from schrodingerscat.famillecollet.com (pom51-2-82-241-130-121.fbx.proxad.net [82.241.130.121]) (Authenticated sender: contact@ll-experts.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id A291F41C079 for ; Wed, 18 Jun 2014 19:06:42 +0200 (CEST) Message-ID: <53A1C722.9060501@fedoraproject.org> Date: Wed, 18 Jun 2014 19:06:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Problems with the fix for the BC break introduced in 5.4.29 and 5.5.13 From: remi@fedoraproject.org (Remi Collet) Le 17/06/2014 16:05, Ferenc Kovacs a =C3=A9crit : > Hi, >=20 > Could you check out my last mail about the unserialize stuff?: > http://news.php.net/php.internals/74947 The initial commit try to fix a segfault for bug #67072. https://bugs.php.net/67072 This case is really awful... something which should not exists. Ok, a segfault is bad, but we have live with it since years. My proposal, for a quick solution, trying to be pragmatic and trying to make the most of php users happy. Revert in 5.4.30 to the 5.4.28 code (only var_serialize.* + tests) Revert in 5.5.14 to the 5.5.12 code This should allow to release without new delay. In 5.6+ (or master), keep the fix (don't allow to unserialize things which don't have to be) And allow newInstanceWithoutConstructor for internal classes. (make this unserialize hack used by phpunit and doctrine unneeded) And fix classes which need to be fixed. Remi.