On 23/07/2014 13:01, Dan Ackroyd wrote:
> Regarding the change in behaviour, I think the patch
> https://bugs.php.net/patch-display.php?bug=67064&patch=bug67064-BC&revision=1402667581
> should definitely be applied.
> 
> Currently the engine is doing magic stuff by modifying the parameters
> that are passed to the function. i.e. you call count() with no
> parameters and it arrives at the function with parameters. \o/
> 
> Even if that wasn't a BC break, having magic behaviour in a language
> is very, very bad.

I agree, that's why I wrote the tiny patch in the first place ;)

IMHO, the functionality as it is now breaks the principle of least surprise.


Cheers
-- 
Matteo Beccati

Development & Consulting - http://www.beccati.com/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to