summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2019-02-25 15:00:14 +0800
committerXinchen Hui <laruence@gmail.com>2019-02-25 15:00:14 +0800
commit1c22ace0582fb0a2ec581237fcf1c5b9c41edd04 (patch)
tree76dfc260757f366fcf6f91dd63aca370ef7ef62c /Zend/tests
parent4a72dd782df3089a0d944a7e51eabebdf1f1abc3 (diff)
downloadphp-git-1c22ace0582fb0a2ec581237fcf1c5b9c41edd04.tar.gz
Fixed bug #77660 (Segmentation fault on break 2147483648)
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug77660.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug77660.phpt b/Zend/tests/bug77660.phpt
new file mode 100644
index 0000000000..94af1f9e2c
--- /dev/null
+++ b/Zend/tests/bug77660.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #77660 (Segmentation fault on break 2147483648)
+--SKIPIF--
+<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
+--FILE--
+<?php
+for(;;) break 2147483648;
+?>
+--EXPECTF--
+Fatal error: Cannot 'break' 2147483648 levels in %sbug77660.php on line %d