From: Anatol Belski Date: Tue, 10 Mar 2015 08:09:16 +0000 (+0100) Subject: added more exception tests X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~722^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=388c4e7436187d10327129b7e22a05fbec650b26;p=php added more exception tests --- diff --git a/Zend/tests/exception_011.phpt b/Zend/tests/exception_011.phpt new file mode 100644 index 0000000000..86e10262d1 --- /dev/null +++ b/Zend/tests/exception_011.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test exception doesn't cause RSHUTDOWN bypass, variation 0 +--INI-- +assert.bail=1 +assert.exception=1 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught exception 'AssertionException' with message 'assert(false)' in %sexception_011.php:%d +Stack trace: +#0 %sexception_011.php(%d): assert(false, 'assert(false)') +#1 {main} + thrown in %sexception_011.php on line %d diff --git a/Zend/tests/exception_012.phpt b/Zend/tests/exception_012.phpt new file mode 100644 index 0000000000..91ea84b2e9 --- /dev/null +++ b/Zend/tests/exception_012.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test exception doesn't cause RSHUTDOWN bypass, variation 1 +--INI-- +assert.bail=1 +assert.exception=1 +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught exception 'AssertionException' with message 'assert(false)' in %sexception_012.php(%d) : runtime-created function:%d +Stack trace: +#0 %sexception_012.php(%d) : runtime-created function(%d): assert(false, 'assert(false)') +#1 %sexception_012.php(%d): __lambda_func() +#2 {main} + thrown in %sexception_012.php(%d) : runtime-created function on line %d