mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
227295a4f1
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
53 lines
801 B
PHP
53 lines
801 B
PHP
--TEST--
|
|
Catchable fatal error [2]
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
}
|
|
|
|
function blah (Foo $a)
|
|
{
|
|
}
|
|
|
|
function error()
|
|
{
|
|
$a = func_get_args();
|
|
var_dump($a);
|
|
}
|
|
|
|
set_error_handler('error');
|
|
|
|
blah (new StdClass);
|
|
echo "ALIVE!\n";
|
|
?>
|
|
--EXPECTF--
|
|
array(5) {
|
|
[0]=>
|
|
int(4096)
|
|
[1]=>
|
|
string(%d) "Argument 1 passed to blah() must be an instance of Foo, called in %scatchable_error_002.php on line 17 and defined"
|
|
[2]=>
|
|
string(%d) "%scatchable_error_002.php"
|
|
[3]=>
|
|
int(5)
|
|
[4]=>
|
|
array(0) {
|
|
}
|
|
}
|
|
ALIVE!
|
|
--UEXPECTF--
|
|
array(5) {
|
|
[0]=>
|
|
int(4096)
|
|
[1]=>
|
|
unicode(%d) "Argument 1 passed to blah() must be an instance of Foo, called in %scatchable_error_002.php on line 17 and defined"
|
|
[2]=>
|
|
unicode(%d) "%scatchable_error_002.php"
|
|
[3]=>
|
|
int(5)
|
|
[4]=>
|
|
array(0) {
|
|
}
|
|
}
|
|
ALIVE!
|