2012-09-06 07:26:40 +00:00
|
|
|
--TEST--
|
|
|
|
Bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function).
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
register_shutdown_function(function(){echo("\n\n!!!shutdown!!!\n\n");});
|
|
|
|
|
|
|
|
class Bad {
|
|
|
|
public function __toString() {
|
2019-02-26 14:32:18 +00:00
|
|
|
throw new Exception('I CAN DO THIS');
|
2012-09-06 07:26:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$bad = new Bad();
|
|
|
|
echo "$bad";
|
|
|
|
--EXPECTF--
|
2019-02-26 14:32:18 +00:00
|
|
|
Fatal error: Uncaught Exception: I CAN DO THIS in %s:%d
|
|
|
|
Stack trace:
|
|
|
|
#0 %s(%d): Bad->__toString()
|
|
|
|
#1 {main}
|
|
|
|
thrown in %s on line %d
|
2012-09-06 07:26:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
!!!shutdown!!!
|