summaryrefslogtreecommitdiff
path: root/ext/opcache/tests
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-04-02 00:04:30 +0800
committerXinchen Hui <laruence@php.net>2015-04-02 00:04:30 +0800
commited43b7a5487c7ea245ae5b7ecd4f0a4f349e1b3b (patch)
treeb54fd3518bd41181f04b68235548e5edff109c90 /ext/opcache/tests
parent3b8b1435ad832e162a2a3a2009a548e833ebb99a (diff)
parent9433b33ac142502bd7e8a1210d6a0770c5317800 (diff)
downloadphp-git-ed43b7a5487c7ea245ae5b7ecd4f0a4f349e1b3b.tar.gz
Merge branch 'PHP-5.6'
Conflicts: ext/opcache/zend_accelerator_module.c
Diffstat (limited to 'ext/opcache/tests')
-rw-r--r--ext/opcache/tests/bug69281.phpt17
-rw-r--r--ext/opcache/tests/is_script_cached.phpt1
2 files changed, 18 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug69281.phpt b/ext/opcache/tests/bug69281.phpt
new file mode 100644
index 0000000000..4d68d5007b
--- /dev/null
+++ b/ext/opcache/tests/bug69281.phpt
@@ -0,0 +1,17 @@
+--TEST--
+Test that script cached info is correct with validate_timestamps disabled
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.file_update_protection=0
+opcache.validate_timestamps=0
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+var_dump(opcache_is_script_cached(__FILE__));
+var_dump(opcache_is_script_cached("nonexistent.php"));
+?>
+--EXPECT--
+bool(true)
+bool(false)
diff --git a/ext/opcache/tests/is_script_cached.phpt b/ext/opcache/tests/is_script_cached.phpt
index 0560e98d88..bac561103f 100644
--- a/ext/opcache/tests/is_script_cached.phpt
+++ b/ext/opcache/tests/is_script_cached.phpt
@@ -4,6 +4,7 @@ Test that script cached info is correct
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
+opcache.validate_timestamps=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--