summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-09-16 14:58:18 +0800
committerXinchen Hui <laruence@php.net>2013-09-16 14:58:18 +0800
commit1916aaa272a19e118eae7ad53622174a3fd4a15e (patch)
treee6d49d441a4fb0506a164b2c6104303a644a4f00
parent46f18ccf0d11b18c3eebdd19d4057966dfcca6fe (diff)
downloadphp-git-1916aaa272a19e118eae7ad53622174a3fd4a15e.tar.gz
Add test for ISSUE #128
-rw-r--r--ext/opcache/tests/issue0128.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/opcache/tests/issue0128.phpt b/ext/opcache/tests/issue0128.phpt
new file mode 100644
index 0000000000..637f675ac2
--- /dev/null
+++ b/ext/opcache/tests/issue0128.phpt
@@ -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"