Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10381 invoked from network); 17 Jul 2014 05:09:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2014 05:09:36 -0000 Authentication-Results: pb1.pair.com header.from=remi@fedoraproject.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=remi@fedoraproject.org; spf=permerror; 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:44930] helo=relay5-d.mail.gandi.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 19/10-09067-E8A57C35 for ; Thu, 17 Jul 2014 01:09:35 -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 6B35441C067 for ; Thu, 17 Jul 2014 07:09:31 +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 glFA13uAiHn2 for ; Thu, 17 Jul 2014 07:09:30 +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 1331141C062 for ; Thu, 17 Jul 2014 07:09:29 +0200 (CEST) Message-ID: <53C75A89.5000401@fedoraproject.org> Date: Thu, 17 Jul 2014 07:09:29 +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: [PHP-DEV] An BC issue in unserialize From: remi@fedoraproject.org (Remi Collet) Le 17/07/2014 06:01, Laruence a =C3=A9crit : > $this->_prototype =3D unserialize(sprintf('O:%d:"%s":0:{}', > strlen($this->name), $this->name)); > I am not sure now. should this usage be supported? In think unserialize is an horrible hack which should have never be used. This is described in UPGRADINGS First, try to fix the code, using newInstanceWithoutConstructor() when available (5.4+) and possible (userland classes) Remi.