Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84020 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92367 invoked from network); 27 Feb 2015 15:31:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 15:31:34 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.175 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:34736] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/86-32582-5DD80F45 for ; Fri, 27 Feb 2015 10:31:33 -0500 Received: by widex7 with SMTP id ex7so969954wid.1 for ; Fri, 27 Feb 2015 07:31:29 -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:date :message-id:subject:from:to:cc:content-type; bh=Tj6forF0DyNC48XWuc3bUb7rUiuLmOqwifHKJ10uBBE=; b=ReJBKj2JwzhGIBFQ1Mm5jfIM69EiVGOnzwKZsXucEItUcEhW2nVMqCddoDXlQYENRW fBBDqYIdwE/pwXISJ4tU3YCpEOAMJcP9t9cPhJnjqpjD6xi8ibgMMwZfKC1sY9GfnG6T jfZGi/X6RsNOalGxoDhMg+VanTmgyeYtZd9SNQIu9/bB6cz7TV1/PLMxrPVBHWBq7H/t lXeX7VzyM23dxtbf/9Rvomp6bdSlAGsw7ulgxQGDD/7wmTSBA7LkC+8Lc8/iXQMoXdWI VfmgY/Vk8yBGj/BO/UER+m47ezt32lrnHDy/gyFEDQ6X09Fs0PkBfJgZqLcCLmaydmsP hBtA== X-Gm-Message-State: ALoCoQl0c5V7i10V9RnjPE0OdIpmNKS/crL5saJoGXjkDtneXZKTg/KUWJgGfBaCwo8ljnopPQOI MIME-Version: 1.0 X-Received: by 10.180.211.235 with SMTP id nf11mr7818840wic.52.1425051089418; Fri, 27 Feb 2015 07:31:29 -0800 (PST) Received: by 10.194.192.202 with HTTP; Fri, 27 Feb 2015 07:31:29 -0800 (PST) X-Originating-IP: [87.139.115.236] In-Reply-To: <54F08C76.9030600@php.net> References: <54F08C76.9030600@php.net> Date: Fri, 27 Feb 2015 16:31:29 +0100 Message-ID: To: Sebastian Bergmann Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c38910f8d17f0510138fa3 Subject: Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing From: kontakt@beberlei.de (Benjamin Eberlei) --001a11c38910f8d17f0510138fa3 Content-Type: text/plain; charset=UTF-8 On Fri, Feb 27, 2015 at 4:25 PM, Sebastian Bergmann wrote: > Am 27.02.2015 um 01:29 schrieb Matthew Weier O'Phinney: > > - 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.) > > - 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.) > > Pull requests for PHPUnit would be appreciated ;-) https://gist.github.com/beberlei/8a33ae940829f1186da2 <- these are the necessary changes for dev-msater to run on php7+coercive patch > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a11c38910f8d17f0510138fa3--