Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74669 invoked from network); 3 Dec 2014 20:35:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Dec 2014 20:35:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.17.20 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.17.20 mout.gmx.net Received: from [212.227.17.20] ([212.227.17.20:60382] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/E6-15597-B147F745 for ; Wed, 03 Dec 2014 15:35:39 -0500 Received: from [192.168.0.100] ([91.67.244.80]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MQu9K-1XRvIU0sda-00UMmo for ; Wed, 03 Dec 2014 21:35:36 +0100 Message-ID: <547F741D.6030507@gmx.de> Date: Wed, 03 Dec 2014 21:35:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:W/6uKXemTXUSCYW4ECUOjZq0+Ibty1Da44YkzdyT/ncjhBA2vQE aK9SEXwVTd5hGXmwVr0UnY7dXjrrJqKn+BSFlhrFZfq6W8sOSu+tM94KI0J7zn6hu4+q5IP Qv1HiEE5RI9s4MI2BpngD9dSQcDtnHVM8CQu6sS2YkTHfNdT07qC9nFwl0aCtUQAxy5iYOS 72p+QuaBhVzIEp1j6E7zA== X-UI-Out-Filterresults: notjunk:1; Subject: Conversion of SplFileInfo instances to boolean From: cmbecker69@gmx.de (Christoph Becker) Hello internals, today I stumbled over issue #65213[1] which has been reported as a bug, but was changed to a feature request without any hint why the conversion of SplFileInfo instances to boolean throws a catchable fatal error. Even worse, due to optimizations in OPcache (and maybe other optimizers as well), this does not always happen. Consider the following snippet: [2] -- Christoph M. Becker