Annotation of embedaddon/php/tests/lang/bug25547.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #25547 (error_handler and array index with function call)
3: --FILE--
4: <?php
5:
6: function handler($errno, $errstr, $errfile, $errline, $context)
7: {
8: echo __FUNCTION__ . "($errstr)\n";
9: }
10:
11: set_error_handler('handler');
12:
13: function foo($x) {
14: return "foo";
15: }
16:
17: $output = array();
18: ++$output[foo("bar")];
19:
20: print_r($output);
21:
22: echo "Done";
23: ?>
24: --EXPECT--
25: handler(Undefined index: foo)
26: Array
27: (
28: [foo] => 1
29: )
30: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>