diff options
Diffstat (limited to 'tests/lang/bug25547.phpt')
-rwxr-xr-x | tests/lang/bug25547.phpt | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/lang/bug25547.phpt b/tests/lang/bug25547.phpt deleted file mode 100755 index cce556ceb9..0000000000 --- a/tests/lang/bug25547.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---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 |