Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74249 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81870 invoked from network); 16 May 2014 06:26:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 May 2014 06:26:26 -0000 Authentication-Results: pb1.pair.com header.from=bruno@chalopin.fr; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bruno@chalopin.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chalopin.fr from 209.85.223.181 cause and error) X-PHP-List-Original-Sender: bruno@chalopin.fr X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:38545] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A0/D3-58167-19FA5735 for ; Fri, 16 May 2014 02:26:26 -0400 Received: by mail-ie0-f181.google.com with SMTP id rl12so1995336iec.26 for ; Thu, 15 May 2014 23:26:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=70QHscSxz/aH1YAukLMNAedZ5KaO+XztYeHZxANYDCQ=; b=NXe1vjhfZx+lJC1OwD7wls/DzYpzaWGdv3+d5Wh82eqzAHFxlx9Tt9ZvqE31xZTmmH VPnBzgHhyd8Q0JwcrkOyIQD0GpdLCefmSqaR9Q6nrUha6u5xcYJogSygz/3BP/70bjDn LfSrakL5eVfQMuC/FKpp7XawUzMT1iqr8Fv9NUtOzT1TajsOHLVOroJN+00IE0dEjEOr x2oK1LjtigKgjfdvmuZVXJSSGYRuH4QsOOHgr40wYf/KjvlN5Ka4UbIS6P20qhZRwkEc /Fd9tPklt4QbPZrh8wACZDVWy3EjVRvP5juPzWE3yscY6QM4sPE0eFE67XEdZAC85gab toMw== X-Gm-Message-State: ALoCoQn504rIy9Vwr5M1FK51aMTsoxXrW46zvncBJJp++03DggOpr5jgAY5YdM49LlBSZ9beYlsx MIME-Version: 1.0 X-Received: by 10.50.143.34 with SMTP id sb2mr78546107igb.48.1400221583170; Thu, 15 May 2014 23:26:23 -0700 (PDT) Received: by 10.64.34.225 with HTTP; Thu, 15 May 2014 23:26:23 -0700 (PDT) X-Originating-IP: [92.103.172.102] In-Reply-To: References: Date: Fri, 16 May 2014 08:26:23 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary=001a1135effe127bc804f97e7efd Subject: Re: [PHP-DEV] opcache not working on windows From: bruno@chalopin.fr (Bruno CHALOPIN) --001a1135effe127bc804f97e7efd Content-Type: text/plain; charset=UTF-8 Hi, He's using fcgi on windows too so NTS is more than fine 2014-05-15 20:20 GMT+02:00 Matt Ficken : > Which web server and PHP build are you using on Windows? > > With Apache on Windows, you should be using the TS build of PHP. You said > you were using the NTS build, which is what you'd use with IIS. > > Also, try setting `enable_cli=1` > > > > > On Thu, May 15, 2014 at 6:15 AM, Nicolai Scheer >wrote: > > > Hi, > > > > I'm currently testing opcache for php 5.5.12 on linux and windows. Both > > platforms are used in conjunction with apache 2.2 and mod_fcgid + > php-fcgi. > > > > On linux opcache seems to work just fine, but on windows (Windows Server > > 2008, php NTS, VC11 binary) it does not seem to work. > > > > If I dump the settings I get: > > > > Array > > ( > > [directives] => Array > > ( > > [opcache.enable] => 1 > > [opcache.enable_cli] => > > [opcache.use_cwd] => 1 > > [opcache.validate_timestamps] => 1 > > [opcache.inherited_hack] => 1 > > [opcache.dups_fix] => > > [opcache.revalidate_path] => > > [opcache.log_verbosity_level] => 4 > > [opcache.memory_consumption] => 67108864 > > [opcache.interned_strings_buffer] => 8 > > [opcache.max_accelerated_files] => 20000 > > [opcache.max_wasted_percentage] => 0.05 > > [opcache.consistency_checks] => 0 > > [opcache.force_restart_timeout] => 180 > > [opcache.revalidate_freq] => 2 > > [opcache.preferred_memory_model] => > > [opcache.blacklist_filename] => > > [opcache.max_file_size] => 0 > > [opcache.error_log] => > > [opcache.protect_memory] => > > [opcache.save_comments] => 1 > > [opcache.load_comments] => 1 > > [opcache.fast_shutdown] => 1 > > [opcache.enable_file_override] => > > [opcache.optimization_level] => 2147483647 > > ) > > > > [version] => Array > > ( > > [version] => 7.0.4-dev > > [opcache_product_name] => Zend OPcache > > ) > > > > [blacklist] => Array > > ( > > ) > > > > ) > > > > But dumping the status shows that the cache is not enabled: > > > > > > Array > > ( > > [opcache_enabled] => > > [cache_full] => 1 > > [restart_pending] => 1 > > [restart_in_progress] => > > [memory_usage] => Array > > ( > > [used_memory] => 63439832 > > [free_memory] => 48 > > [wasted_memory] => 3668984 > > [current_wasted_percentage] => 5.4672122001648 > > ) > > > > [interned_strings_usage] => Array > > ( > > [buffer_size] => 4194304 > > [used_memory] => 2549912 > > [free_memory] => 1644392 > > [number_of_strings] => 83780 > > ) > > > > [opcache_statistics] => Array > > ( > > [num_cached_scripts] => 328 > > [num_cached_keys] => 700 > > [max_cached_keys] => 32531 > > [hits] => 221276 > > [start_time] => 1397470295 > > [last_restart_time] => 1397480294 > > [oom_restarts] => 1 > > [hash_restarts] => 0 > > [manual_restarts] => 0 > > [misses] => 3071052 > > [blacklist_misses] => 0 > > [blacklist_miss_ratio] => 0 > > [opcache_hit_rate] => 6.7209585436202 > > ) > > > > ) > > > > The phpinfo page also shows all opcache settings and lists "Opcode > > Caching" as "Disabled". > > > > Maybe I'm overseeing something here. > > > > Any hints on what could be wrong? > > > > Greetings > > > > Nico > > > --001a1135effe127bc804f97e7efd--