Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83953 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46755 invoked from network); 27 Feb 2015 02:06:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 02:06:15 -0000 Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:10093] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/3C-32582-511DFE45 for ; Thu, 26 Feb 2015 21:06:14 -0500 Received: from moorea (unknown [82.240.16.115]) by smtp2-g21.free.fr (Postfix) with ESMTP id 8538F4B010F; Fri, 27 Feb 2015 03:05:49 +0100 (CET) Reply-To: To: "'Matthew Weier O'Phinney'" , Cc: "Zeev Suraski" References: In-Reply-To: Date: Fri, 27 Feb 2015 03:06:06 +0100 Message-ID: <0acc01d05231$f2274780$d675d680$@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQI+foPC9+gKUbaeko12y549XfdpdpwnY1lA Content-Language: fr X-Antivirus: avast! (VPS 150226-1, 26/02/2015), Outbound message X-Antivirus-Status: Clean Subject: RE: [PHP-DEV] Follow-up to STH user experience, this time with actual testing From: francois@php.net (=?utf-8?Q?Fran=C3=A7ois_Laupretre?=) > De : Matthew Weier O'Phinney [mailto:matthew@zend.com] > > - PHPUnit passes a boolean false to `debug_backtrace()`... which is > documented > as expecting an integer! (There are actually several constant values = it > accepts, all of which are integer values.) In this case, PHPUnit is = relying > on the fact that the engine casts booleans to the integers 0 and 1. = (Zeev has > written to the list already indicating that this coercion path will = be > supported in the patch.) AFAIK, we won't support boolean to integer. IMO, considering Boolean as = integer is a bug and must not be supported. > - PHPUnit is passing the results of $reflector->getDocComment() = blindly to > substr() and preg_match*(). getDocComment() is documented as = returning > EITHER > a string OR boolean false. Again, PHPUnit is relying on PHP to cast = boolean > false to an empty string. (Zeev has also indicated this coercion = path may be > re-introduced.) The same as above for bool -> string. I hope you're wrong because I wouldn't like supporting boolean to scalar = back again. Your test demonstrates this because you found undetected bugs. I am more = and more sure that, what I first said as a joke, will prove true : = during the next years, STH will be used mostly as a debugging tool, = proving opposite arguments were FUD or, at least, phantasm. Regards Fran=C3=A7ois