Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20201 invoked from network); 10 Oct 2017 13:41:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2017 13:41:09 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 188.94.27.5 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 188.94.27.5 scarlet.netpirates.net Received: from [188.94.27.5] ([188.94.27.5:59190] helo=scarlet.netpirates.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/67-49033-0FDCCD95 for ; Tue, 10 Oct 2017 09:41:06 -0400 Received: (qmail 5439 invoked by uid 89); 10 Oct 2017 13:41:02 -0000 Received: by simscan 1.4.0 ppid: 5431, pid: 5434, t: 0.0615s scanners: attach: 1.4.0 clamav: 0.99.1/m:/d:20700 Received: from unknown (HELO ?192.168.178.41?) (php@sebastian-bergmann.de@93.226.195.186) by scarlet.netpirates.net with ESMTPA; 10 Oct 2017 13:41:01 -0000 To: internals@lists.php.net Reply-To: internals@lists.php.net Message-ID: <9a3f15dd-5dfc-144b-cc5f-66f689c33f53@php.net> Date: Tue, 10 Oct 2017 15:41:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Strict type declarations not enforced for Reflection API invocation From: sebastian@php.net (Sebastian Bergmann) https://bugs.php.net/bug.php?id=75345 is about the fact that strict type declarations are not enforced when a function or method is invoked via the Reflection API. There is a pull request that addresses this (as well as https://bugs.php.net/bug.php?id=74750) at https://github.com/php/php-src/pull/2837. I consider this a serious bug that leads to unexpected, confusing problems such as https://github.com/sebastianbergmann/phpunit/issues/2796#issuecomment-335180273. I understand Nikita's point of view (see https://github.com/php/php-src/pull/2837#issuecomment-335405067) that changing this behavior (aka. fixing this bug) can be considered a "non-trivial backwards compatibility break". Therefore I would like to bring this issue to the attention of this list with this mail.