Only variables can be passed by reference

From: Date: Thu, 04 Dec 2014 08:28:03 +0000
Subject: Only variables can be passed by reference
Groups: php.internals 
Request: Send a blank email to internals+get-79412@lists.php.net to get a copy of this message
Hi all, 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? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#79412) next »