]> granicus.if.org Git - php/commitdiff
Forgot the test for bug #69688
authorXinchen Hui <laruence@php.net>
Fri, 22 May 2015 03:50:55 +0000 (11:50 +0800)
committerXinchen Hui <laruence@php.net>
Fri, 22 May 2015 03:50:55 +0000 (11:50 +0800)
ext/opcache/tests/bug69688.phpt [new file with mode: 0644]

diff --git a/ext/opcache/tests/bug69688.phpt b/ext/opcache/tests/bug69688.phpt
new file mode 100644 (file)
index 0000000..cc75960
--- /dev/null
@@ -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