]> granicus.if.org Git - php/commitdiff
Add test for ISSUE #128
authorXinchen Hui <laruence@php.net>
Mon, 16 Sep 2013 06:58:18 +0000 (14:58 +0800)
committerXinchen Hui <laruence@php.net>
Mon, 16 Sep 2013 06:58:18 +0000 (14:58 +0800)
ext/opcache/tests/issue0128.phpt [new file with mode: 0644]

diff --git a/ext/opcache/tests/issue0128.phpt b/ext/opcache/tests/issue0128.phpt
new file mode 100644 (file)
index 0000000..637f675
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+ISSUE #128 (opcache_invalidate segmentation fault)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+var_dump(opcache_invalidate('1'));
+var_dump("okey");
+?>
+--EXPECT--
+bool(false)
+string(4) "okey"