summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/issue0128.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/issue0128.phpt')
-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"