--TEST-- Setting previous exception --FILE-- --EXPECTF-- Fatal error: Uncaught Exception: Another in %s Stack trace: #0 {main} Next Exception: First in %s Stack trace: #0 {main} Next Exception: Second in %s Stack trace: #0 {main} Next Exception: Third in %s Stack trace: #0 {main} thrown in %s