mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
19 lines
391 B
PHP
19 lines
391 B
PHP
--TEST--
|
|
Test using an Exception as the previous Throwable for an Error
|
|
--CREDITS--
|
|
Aaron Piotrowski <aaron@icicle.io>
|
|
--FILE--
|
|
<?php
|
|
throw new Error('Error message', 0, new Exception('Exception message'));
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Uncaught Exception: Exception message in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
|
|
Next Error: Error message in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|