mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
2cde4b2ea4
Closes GH-13153.
19 lines
360 B
PHP
19 lines
360 B
PHP
--TEST--
|
|
GH-13097 (Anonymous class reference in trigger_error / thrown Exception)
|
|
--FILE--
|
|
<?php
|
|
|
|
$anonymous = new class(){};
|
|
|
|
throw new Exception(
|
|
get_class($anonymous).' ...now you don\'t!',
|
|
E_USER_ERROR
|
|
);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception: class@anonymous%s ...now you don't! in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|