Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Benjamin Eberlei
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, al

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Sebastian Bergmann
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

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Jordi Boggiano
Matthew, Thanks a bunch for going through this and writing such a detailed report. On 27/02/2015 00:29, Matthew Weier O'Phinney wrote: ### STHv5 [snip] Analysis I did not expect the float value to be coerced, particularly as it had a fractional part. Yes, I understand that this is how

RE: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Zeev Suraski
> - 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 inte

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Benjamin Eberlei
Matthew, On Fri, Feb 27, 2015 at 1:29 AM, Matthew Weier O'Phinney wrote: > I've taken some time the last couple days to compile both the Scalare Type > Hints > v0.5 (heretofor STHv5) and Coercive Scalar Type Hints (heretofore > STHcoerce) > patches and test some code against them. > > In each ca

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 3:59 PM, Xinchen Hui wrote: > Hey: > > On Fri, Feb 27, 2015 at 10:06 AM, François Laupretre wrote: >>> De : Matthew Weier O'Phinney [mailto:matt...@zend.com] >>> >>> - PHPUnit passes a boolean false to `debug_backtrace()`... which is >>> documented >>> as expecti

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-27 Thread Xinchen Hui
Hey: On Fri, Feb 27, 2015 at 10:06 AM, François Laupretre wrote: >> De : Matthew Weier O'Phinney [mailto:matt...@zend.com] >> >> - PHPUnit passes a boolean false to `debug_backtrace()`... which is >> documented >> as expecting an integer! (There are actually several constant values it >> acce

RE: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-26 Thread François Laupretre
> De : Pierre Joye [mailto:pierre@gmail.com] > And now let wait all other cases not covered by errors but casting to > different values, maybe only a few, maybe none, we simply do not know. Pierre, excuse me to repeat here, because I jst replied the same in another thread but there is no 'cas

RE: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-26 Thread François Laupretre
> De : Matthew Weier O'Phinney [mailto:matt...@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 >

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-26 Thread Pierre Joye
On Thu, Feb 26, 2015 at 4:29 PM, Matthew Weier O'Phinney wrote: > I've taken some time the last couple days to compile both the Scalare Type > Hints > v0.5 (heretofor STHv5) and Coercive Scalar Type Hints (heretofore STHcoerce) > patches and test some code against them. Thanks for this detaile

Re: [PHP-DEV] Follow-up to STH user experience, this time with actual testing

2015-02-26 Thread Trevor Suarez
Thank you so much for taking the time to do this. Your explanations of a more "real-world" example are extremely valuable and provide a very strong hint at the effects that these RFC implementations may have, both in the short and long term. Seriously, very appreciated. On Thu, Feb 26, 2015 at 7: