> On 18 Nov 2014, at 22:54, Stanislav Malyshev <smalys...@gmail.com> wrote:
> 
> Hi!
> 
>> In fact, it *is* a bug: https://bugs.php.net/bug.php?id=67829
> 
> It is most definitely not a bug, it's the intended behavior that has
> been coded so and has been in PHP for a very long time. You may argue it
> should not be so, and it should be changed, that's fine, but it's not
> what is called a bug - it's not a mistake, it's how it was intended to
> work.

Are you sure it was intended to work this way, with the parameters not being 
evaluated at all? Is that actually useful in any context? Function calls always 
evaluate their arguments, do they not? PHP is a language with functions that 
have side effects.

> Changing this is a feature request, for which you're welcome to
> make an RFC. I'm not sure though it would be very useful change since
> IMO it would break BC for no actual gain to any practical code. But if
> you think you're wrong RFC is definitely an option.

Alright then, it’s a “feature” that needs fixing, not a bug.
--
Andrea Faulds
http://ajf.me/





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

Reply via email to