1--TEST-- 2Test using an Exception as the previous Throwable for an Error 3--CREDITS-- 4Aaron Piotrowski <aaron@icicle.io> 5--FILE-- 6<?php 7throw new Error('Error message', 0, new Exception('Exception message')); 8?> 9--EXPECTF-- 10 11Fatal error: Uncaught Exception: Exception message in %s:%d 12Stack trace: 13#0 {main} 14 15Next Error: Error message in %s:%d 16Stack trace: 17#0 {main} 18 thrown in %s on line %d 19