mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
727b422ad9
E_RECOVERABLE errors are reported as "Catchable fatal error". This is misleading, because they actually can't be caught via try-catch statements. Therefore we change the wording to "Recoverable fatal error" as suggested by Nikita.
30 lines
581 B
PHP
30 lines
581 B
PHP
--TEST--
|
|
Testing instanceof operator with several operators
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = new stdClass;
|
|
var_dump($a instanceof stdClass);
|
|
|
|
var_dump(new stdCLass instanceof stdClass);
|
|
|
|
$b = create_function('', 'return new stdClass;');
|
|
var_dump($b() instanceof stdClass);
|
|
|
|
$c = array(new stdClass);
|
|
var_dump($c[0] instanceof stdClass);
|
|
|
|
var_dump(@$inexistent instanceof stdClass);
|
|
|
|
var_dump("$a" instanceof stdClass);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(true)
|
|
bool(false)
|
|
|
|
Recoverable fatal error: Object of class stdClass could not be converted to string in %s on line %d
|