Re: [RFC] Default constructors

From: Date: Tue, 18 Nov 2014 22:57:43 +0000
Subject: Re: [RFC] Default constructors
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-78965@lists.php.net to get a copy of this message
> On 18 Nov 2014, at 22:54, Stanislav Malyshev <smalyshev@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/

« previous php.internals (#78965) next »