php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/ |
files >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/closure_019.phpt |
--TEST-- Closure 019: Calling lambda using $GLOBALS and global $var --FILE-- <?php $lambda = function &(&$x) { return $x = $x * $x; }; function test() { global $lambda; $y = 3; var_dump($GLOBALS['lambda']($y)); var_dump($lambda($y)); var_dump($GLOBALS['lambda'](1)); } test(); ?> --EXPECTF-- Notice: Only variable references should be returned by reference in %sclosure_019.php on line 4 int(9) Notice: Only variable references should be returned by reference in %sclosure_019.php on line 4 int(81) Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in %s:%d Stack trace: #0 %s(%d): test() #1 {main} thrown in %s on line %dy~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`