Re: Only variables can be passed by reference

From: Date: Thu, 04 Dec 2014 10:08:54 +0000
Subject: Re: Only variables can be passed by reference
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79418@lists.php.net to get a copy of this message
Hi all, On Thu, Dec 4, 2014 at 5:28 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > I think we can get rid of this error now when literal is returned. > The reason we have E_STRICT error is that legacy PHP didn't > support this, I suppose. > > http://3v4l.org/8fISj > > Is it possible to allow literal as referenced parameter for PHP7? > It's better to remove needless restrictions where it is possible. > HHVM seems already support this. > > http://3v4l.org/t79rF > > Any comments? > I made a little better sample code. http://3v4l.org/d51DQ I would like to hear opinions from engine experts. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#79418) next »