diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-11-26 12:14:12 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-11-26 12:14:12 +0400 |
commit | 8fdc973afa95ba1a19df09d8d300f7c5b7cdcbb8 (patch) | |
tree | b6999fc0e1dc144b7ba09f3ae5613e7cbe9f7d40 /ext/opcache | |
parent | 621f83e35c96e488051787b413d7987427b75133 (diff) | |
parent | f28ac55b6da9cb11c99c1da9153baf551ff603c3 (diff) | |
download | php-git-8fdc973afa95ba1a19df09d8d300f7c5b7cdcbb8.tar.gz |
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
Added test
Diffstat (limited to 'ext/opcache')
-rw-r--r-- | ext/opcache/tests/bug65559.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug65559.phpt b/ext/opcache/tests/bug65559.phpt new file mode 100644 index 0000000000..0d40cf10f8 --- /dev/null +++ b/ext/opcache/tests/bug65559.phpt @@ -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) |