Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74717 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7500 invoked from network); 3 Jun 2014 15:07:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jun 2014 15:07:38 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.178 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:58244] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B0/E7-64944-5B4ED835 for ; Tue, 03 Jun 2014 11:07:34 -0400 Received: by mail-wi0-f178.google.com with SMTP id cc10so6746478wib.17 for ; Tue, 03 Jun 2014 08:07:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MCsW5A0nJZtRPpsxy7T9jKsHd+FXQhA1tMeOljkwzg4=; b=GMSJeq255q0X/SslJRhQI2ah35h2YZai1p/tq74qa1Z+7Wg/7Z5cLsQThaNm6EqAlX ZJoIVoyaxjNfWFWCh5Jzf92rWWUrC+j6onQUF4B6yVDQSDiQXGLvULP0aZRjzfKpUH93 fw5An6S8cOfARKj8A98QPk9A0S9/M7OpnDTRkOaPqwqZcdMS+CrYUDpX7DCazbTVK8/m 5xTo2dCooGa3foF4PQGJUCCLyl2q47cw7mazmUPwEaAO9tnuRNuhUI10KB/9gJNJ87jw AQlhWM2qU+X3XRHrhHbWXupXGsjD+FiiivfDz5uFFlYK3aOSkCVePWVEb796AE7QBB9T u0KA== X-Gm-Message-State: ALoCoQkZyJT38TvvpC9RnNVxemsC6xuL7liU6TKupzutQF2K6oftMEorHbuhS47IZjzvTw66fmYk MIME-Version: 1.0 X-Received: by 10.194.82.170 with SMTP id j10mr61785630wjy.63.1401808050770; Tue, 03 Jun 2014 08:07:30 -0700 (PDT) Received: by 10.194.77.134 with HTTP; Tue, 3 Jun 2014 08:07:30 -0700 (PDT) X-Originating-IP: [178.63.20.229] In-Reply-To: <53886F73.70402@php.net> References: <53886F73.70402@php.net> Date: Tue, 3 Jun 2014 17:07:30 +0200 Message-ID: To: Remi Collet , jpauli@php.net Cc: PHP Content-Type: multipart/alternative; boundary=047d7bb04feee9094d04faefdedc Subject: Re: [PHP-DEV] BC break in 5.4.29 and 5.5.13 From: kontakt@beberlei.de (Benjamin Eberlei) --047d7bb04feee9094d04faefdedc Content-Type: text/plain; charset=UTF-8 @Julien: So what is the strategy now? This should be reverted ASAP. After this my question, besides the PHPT, aren't any tests against php libraries run before releases? Especially this one would have broken PHPUnit already in any test using mocks. On Fri, May 30, 2014 at 1:45 PM, Remi Collet wrote: > Hi. > > Following http://news.php.net/php.internals/73957 > > This change breaks at least doctrine and phpunit. > > Source code: > > https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php#L911 > > https://github.com/sebastianbergmann/phpunit-mock-objects/blob/master/src/Framework/MockObject/Generator.php#L274 > > Something like, (used to not call __construct) : > > $object = unserialize(sprintf('O:%d:"%s":0:{}', strlen($className), > $className) > > Big reproducer: > > # pear channel-discover pear.horde.org > # pear install horde/Horde_Test > # pear install horde/Horde_Imap_Client > # pear download horde/Horde_Imap_Client > # tar xf Horde_Imap_Client-2.20.0.tgz > # cd Horde_Imap_Client-2.20.0/ > # cd test/Horde/Imap/Client/ > # wget https://phar.phpunit.de/phpunit.phar > # php phpunit.phar . > PHPUnit 4.1.0 by Sebastian Bergmann. > > Configuration read from > /root/Horde_Imap_Client-2.20.0/test/Horde/Imap/Client/phpunit.xml > > ...............EEEEEEEEEEEEEEEEEEEEEEEEEEEE.................... 63 / 211 > ( 29%) > .................................FF............................ 126 / 211 > ( 59%) > SS............................................................. 189 / 211 > ( 89%) > ...................... > > Time: 1.07 seconds, Memory: 18.50Mb > > There were 28 errors: > > 1) Horde_Imap_Client_Cache_CacheTest::testGet > Erroneous data format for unserializing > 'Mock_Horde_Imap_Client_Socket_1e0b6300' > > /root/Horde_Imap_Client-2.20.0/test/Horde/Imap/Client/Cache/TestBase.php:36 > > phar:///root/Horde_Imap_Client-2.20.0/test/Horde/Imap/Client/phpunit.phar/phpunit/TextUI/Command.php:179 > > phar:///root/Horde_Imap_Client-2.20.0/test/Horde/Imap/Client/phpunit.phar/phpunit/TextUI/Command.php:132 > > 2) Horde_Imap_Client_Cache_CacheTest::testGetCachedUids > Erroneous data format for unserializing > 'Mock_Horde_Imap_Client_Socket_1e0b6300' > .... > > > > > Remi. > > > --047d7bb04feee9094d04faefdedc--