Bug #72111 [Fbk->NoF]: `opcache_compile_file`无法编译

From: Date: Sun, 15 May 2016 04:22:25 +0000
Subject: Bug #72111 [Fbk->NoF]: `opcache_compile_file`无法编译
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201100@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72111&edit=1 ID: 72111 Updated by: php-bugs@lists.php.net Reported by: ljjgit at qq dot com Summary: opcache_compile_file无法编译 -Status: Feedback +Status: No Feedback Type: Bug Package: opcache Operating System: windows 7 PHP Version: 7.0.5 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-05-01 18:19:05] ab@php.net Thanks for the report. I currently don't reproduce any notice when using your snippet and ini. Seems need more info to reproduce. Thanks. ------------------------------------------------------------------------ [2016-04-27 05:57:14] ljjgit at qq dot com Description: ------------ 开启opcache缓存,但是opcache_compile_file无法编译生成缓存文件,提示Notice: Zend OPcache seems to be disabled, can't compile file in C:\Users\Administrator\Desktop\opcode\script\web\compile.php on line 4 配置: Array ( [directives] => Array ( [opcache.enable] => 1 [opcache.enable_cli] => 1 [opcache.use_cwd] => 1 [opcache.validate_timestamps] => [opcache.inherited_hack] => 1 [opcache.dups_fix] => [opcache.revalidate_path] => [opcache.log_verbosity_level] => 1 [opcache.memory_consumption] => 67108864 [opcache.interned_strings_buffer] => 4 [opcache.max_accelerated_files] => 2000 [opcache.max_wasted_percentage] => 0.05 [opcache.consistency_checks] => 0 [opcache.force_restart_timeout] => 180 [opcache.revalidate_freq] => 1 [opcache.preferred_memory_model] => [opcache.blacklist_filename] => [opcache.max_file_size] => 0 [opcache.error_log] => C:/Users/Administrator/Desktop/opcode/php/runtime/log/opcache_error.log [opcache.protect_memory] => [opcache.save_comments] => 1 [opcache.fast_shutdown] => [opcache.enable_file_override] => [opcache.optimization_level] => 2147467263 [opcache.file_cache] => C:/Users/Administrator/Desktop/opcode/php/runtime/opcache_file_cache [opcache.file_cache_only] => 1 [opcache.file_cache_consistency_checks] => ) [version] => Array ( [version] => 7.0.6-dev [opcache_product_name] => Zend OPcache ) [blacklist] => Array ( ) ) Test script: --------------- ```php (function () { opcache_compile_file(__DIR__ . '/test.php'); // test.php文件内容随便 // print_r(opcache_get_status()); // phpinfo(); // var_dump(ini_get('opcache.enable')); })(); ``` ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72111&edit=1

« previous php.bugs (#201100) next »