Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9939 invoked from network); 27 Feb 2015 08:30:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 08:30:50 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:44943] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/B7-32582-73B20F45 for ; Fri, 27 Feb 2015 03:30:47 -0500 Received: by lams18 with SMTP id s18so16028888lam.11 for ; Fri, 27 Feb 2015 00:30:44 -0800 (PST) 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:from:date :message-id:subject:to:cc:content-type; bh=B0nJXPslALnbSd4ncyxN9vShPbGr5y5KKuAVWeni5bI=; b=VIcNgI50WaPh6TPbIEpUwikdIQ2IXjQJxdfE6l1EatrPHJ/PL4OxaKuzgohuj1EnO3 0tCv3qkhyUIUy8AUcz4QBu/kU3gWnOmzH4puix/T0IuRIJ0cpRXXoBBsT8diEbj94msq iFkiNJkHXUpphl0kxcVovHEKl48U8YNZ/9WIWYfmUEfJi3qJZO04fcMHRXKwGrCqVWhn OYQfFqFfyPqVfgX0O0foOZ4CaUtVwgF4GmkPXDLeSPcU/q2yzyt5d7/gVaAJ6lmA+uxq vQ5Rf0uc+vBmCEYoacatIHzIWkwD6LSL8/H3u5CL71UukSbmc207uIz/ztJY5sOk4V9x xIiA== X-Gm-Message-State: ALoCoQlnSViRsx8yi6jLwAO30gfZLIa4pj0W8sfQAVEMoseX4pF1gbmQCTbW663hPqK+/1wBXt1m6CgQMaf9WLXnxcPLNYfqVeEmELUtZUnCelsbSImQciNpikNcJdlLjdTr8AATE9T4/zdNrnEO6SNJZt95oFPReA== X-Received: by 10.152.178.164 with SMTP id cz4mr11218531lac.39.1425025844448; Fri, 27 Feb 2015 00:30:44 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPSA id xl2sm695594lbb.6.2015.02.27.00.30.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 00:30:43 -0800 (PST) Received: by labhv19 with SMTP id hv19so15961218lab.10 for ; Fri, 27 Feb 2015 00:30:42 -0800 (PST) X-Received: by 10.152.42.238 with SMTP id r14mr11490060lal.13.1425025842499; Fri, 27 Feb 2015 00:30:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.28.198 with HTTP; Fri, 27 Feb 2015 00:30:22 -0800 (PST) In-Reply-To: <54F02593.7040903@php.net> References: <54F02593.7040903@php.net> Date: Fri, 27 Feb 2015 16:30:22 +0800 Message-ID: To: Sebastian Bergmann Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] BC break between PHP 5.6.5 and PHP 5.6.6 From: laruence@php.net (Xinchen Hui) Hey: On Fri, Feb 27, 2015 at 4:06 PM, Sebastian Bergmann wrote: > 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 2 class Foo extends Exception > 3 { > 4 public function __construct() > 5 { > 6 $this->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. > maybe related to your own build? http://3v4l.org/sD8SZ seems works always consistently same since PHP5 thanks > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- Xinchen Hui @Laruence http://www.laruence.com/