文件操作 - bug65915.phpt
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/zendopcache-7.0.5/tests/bug65915.phpt
编辑文件内容
--TEST-- Bug #65915 (Inconsistent results with require return value) --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.file_update_protection=0 --SKIPIF-- <?php require_once('skipif.inc'); ?> <?php if (version_compare(PHP_VERSION, "5.3.0") < 0) die('skip for PHP < 5.3'); ?> --FILE-- <?php $tmp = __DIR__ . "/bug65915.inc.php"; file_put_contents($tmp, '<?php return function(){ return "a";};'); $f = require $tmp; var_dump($f()); opcache_invalidate($tmp, true); file_put_contents($tmp, '<?php return function(){ return "b";};'); $f = require $tmp; var_dump($f()); @unlink($tmp); ?> --EXPECT-- string(1) "a" string(1) "b"
修改文件时间
将文件时间修改为当前时间的前一年
删除文件