com php-src: Add test for ISSUE #128: ext/opcache/tests/issue0128.phpt
| From: | Xinchen Hui | Date: | Mon, 16 Sep 2013 06:58:18 +0000 |
| Subject: | com php-src: Add test for ISSUE #128: ext/opcache/tests/issue0128.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73199@lists.php.net to get a copy of this message | ||
Commit: 1916aaa272a19e118eae7ad53622174a3fd4a15e
Author: Xinchen Hui <laruence@php.net> Mon, 16 Sep 2013 14:58:18 +0800
Parents: 46f18ccf0d11b18c3eebdd19d4057966dfcca6fe
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1916aaa272a19e118eae7ad53622174a3fd4a15e
Log:
Add test for ISSUE #128
Bugs:
https://bugs.php.net/128
Changed paths:
A ext/opcache/tests/issue0128.phpt
Diff:
diff --git a/ext/opcache/tests/issue0128.phpt b/ext/opcache/tests/issue0128.phpt
new file mode 100644
index 0000000...637f675
--- /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"