File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
bug25547.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
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>