mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +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.
29 lines
559 B
PHP
29 lines
559 B
PHP
--TEST--
|
|
Testing exception properties
|
|
--FILE--
|
|
<?php
|
|
|
|
class my_file
|
|
{
|
|
public function __toString()
|
|
{
|
|
return "somebuildfilename" ;
|
|
}
|
|
}
|
|
|
|
class my_exception extends exception
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->message = new stdclass ;
|
|
$this->file = new my_file ;
|
|
$this->line = "12" ;
|
|
}
|
|
}
|
|
|
|
throw new my_exception;
|
|
|
|
?>
|
|
--EXPECT--
|
|
Recoverable fatal error: Object of class stdClass could not be converted to string in Unknown on line 0
|