failed test - bug25547.phpt
| From: | jparsons at pdeusa dot com | Date: | Thu, 11 Dec 2003 02:36:45 +0000 |
| Subject: | failed test - bug25547.phpt | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-15825@lists.php.net to get a copy of this message | ||
Here's the test info that failed
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