]> granicus.if.org Git - php/commitdiff
Added test
authorDmitry Stogov <dmitry@zend.com>
Tue, 26 Nov 2013 08:13:42 +0000 (12:13 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 26 Nov 2013 08:13:42 +0000 (12:13 +0400)
ext/opcache/tests/bug65559.phpt [new file with mode: 0644]

diff --git a/ext/opcache/tests/bug65559.phpt b/ext/opcache/tests/bug65559.phpt
new file mode 100644 (file)
index 0000000..0d40cf1
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+Bug #65559 (cache not cleared if changes occur while running)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.file_update_protection=2
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$file =  __DIR__ . "/bug6559.inc.php";
+file_put_contents($file, '<?php return 1;');
+$var = include $file;
+var_dump($var);
+file_put_contents($file, '<?php return 2;');
+$var = include $file;
+var_dump($var);
+@unlink($file);
+?>
+--EXPECT--
+int(1)
+int(2)