From 1f6b842af430b8cbba0fb1c38a2796ab399171c3 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 28 Jun 2018 12:37:33 +0800 Subject: Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence) --- ext/reflection/tests/bug76536.phpt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ext/reflection/tests/bug76536.phpt (limited to 'ext/reflection/tests/bug76536.phpt') diff --git a/ext/reflection/tests/bug76536.phpt b/ext/reflection/tests/bug76536.phpt new file mode 100644 index 0000000000..9f3b3fdb31 --- /dev/null +++ b/ext/reflection/tests/bug76536.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #76536 (PHP crashes with core dump when throwing exception in error handler) +--FILE-- +getConstants(); +?> +--EXPECTF-- +Fatal error: Uncaught ErrorException in %sbug76536.php:%d +Stack trace: +#0 [internal function]: handleError(Object(ErrorException)) +#1 {main} + thrown in %sbug76536.php on line %d -- cgit v1.2.1