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 >> /opt/php-7.0.1/tests/lang/ |
files >> //opt/php-7.0.1/tests/lang/bug25547.phpt |
--TEST-- Bug #25547 (error_handler and array index with function call) --FILE-- <?php function handler($errno, $errstr, $errfile, $errline, $context) { echo __FUNCTION__ . "($errstr)\n"; } set_error_handler('handler'); function foo($x) { return "foo"; } $output = array(); ++$output[foo("bar")]; print_r($output); echo "Done"; ?> --EXPECT-- handler(Undefined index: foo) Array ( [foo] => 1 ) Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`