Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96711 invoked from network); 27 Feb 2015 08:06:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 08:06:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 93.190.64.237 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 93.190.64.237 mail-1.de-punkt.de Received: from [93.190.64.237] ([93.190.64.237:44305] helo=mail-1.de-punkt.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3C/E4-32582-59520F45 for ; Fri, 27 Feb 2015 03:06:46 -0500 Received: from localhost (localhost [127.0.0.1]) by mail-1.de-punkt.de (Postfix) with ESMTP id D9D803A2EF for ; Fri, 27 Feb 2015 09:06:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail-1.de-punkt.de Received: from mail-1.de-punkt.de ([127.0.0.1]) by localhost (mail-1.de-punkt.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jTopJ8FBvomF for ; Fri, 27 Feb 2015 09:06:42 +0100 (CET) Received: from [192.168.178.24] (p57BDFA1D.dip0.t-ipconnect.de [87.189.250.29]) (Authenticated sender: php@sebastian-bergmann.de) by mail-1.de-punkt.de (Postfix) with ESMTPSA id 6E6A03A26D for ; Fri, 27 Feb 2015 09:06:42 +0100 (CET) Message-ID: <54F02593.7040903@php.net> Date: Fri, 27 Feb 2015 09:06:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: BC break between PHP 5.6.5 and PHP 5.6.6 From: sebastian@php.net (Sebastian Bergmann) While working on PHPUnit today I noticed one test of its own test suite failing on PHP 5.6.6 that passes on PHP 5.6.5. The details of this can be found at https://github.com/sebastianbergmann/phpunit/issues/1630 Florian Margaine reduced the problem to the following minimal, self-contained, reproducing script: 1 code = 123; 7 } 8 } 9 10 try 11 { 12 throw new Foo; 13 } 14 15 catch (Exception $e) 16 { 17 assert($e->code === 123); 18 } The above script works as expected on PHP 5.6.5 but errors out on PHP 5.6.6: PHP Fatal error: Cannot access protected property Foo::$code in /home/sb/exception.php on line 17 PHP Stack trace: PHP 1. {main}() /home/sb/exception.php:0 I do not see a change in http://php.net/ChangeLog-5.php#5.6.6 that would explain this.