cvs: php-src(PHP_4_3) /tests/lang bug25547.phpt

From: Date: Mon, 15 Sep 2003 20:40:56 +0000
Subject: cvs: php-src(PHP_4_3) /tests/lang bug25547.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-23782@lists.php.net to get a copy of this message
helly Mon Sep 15 16:40:56 2003 EDT Added files: (Branch: PHP_4_3) /php-src/tests/lang bug25547.phpt Log: MFH: Test for bug #25547 Index: php-src/tests/lang/bug25547.phpt +++ php-src/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 ) Done

« previous php.cvs (#23782) next »