Re: Follow-up to STH user experience, this time with actual testing

From: Date: Fri, 27 Feb 2015 15:31:29 +0000
Subject: Re: Follow-up to STH user experience, this time with actual testing
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-84020@lists.php.net to get a copy of this message
On Fri, Feb 27, 2015 at 4:25 PM, Sebastian Bergmann <sebastian@php.net> 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 > >

« previous php.internals (#84020) next »