summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug69688.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug69688.phpt')
-rw-r--r--ext/opcache/tests/bug69688.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug69688.phpt b/ext/opcache/tests/bug69688.phpt
new file mode 100644
index 0000000000..cc75960e73
--- /dev/null
+++ b/ext/opcache/tests/bug69688.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #69688 (segfault with eval and opcache fast shutdown)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.fast_shutdown=1
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+eval('function g() {} function g2() {} function g3() {}');
+
+eval('class A{} class B{} class C{}');
+
+?>
+okey
+--EXPECT--
+okey