xref: /php-src/Zend/tests/gh13097_b.phpt (revision 2cde4b2e)
1--TEST--
2GH-13097 (Anonymous class reference in trigger_error / thrown Exception)
3--FILE--
4<?php
5
6$anonymous = new class(){};
7
8throw new Exception(
9    get_class($anonymous).' ...now you don\'t!',
10    E_USER_ERROR
11);
12
13?>
14--EXPECTF--
15Fatal error: Uncaught Exception: class@anonymous%s ...now you don't! in %s:%d
16Stack trace:
17#0 {main}
18  thrown in %s on line %d
19