php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78723 Opcache enabled but fails opcache_enabled check
Submitted: 2019-10-22 19:10 UTC Modified: 2019-11-03 04:22 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: No Feedback Package: Testing related
PHP Version: 7.4.0RC4 OS: Windows Server 2012 R2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
9 + 22 = ?
Subscribe to this entry?

 
 [2019-10-22 19:10 UTC] v-altruo at microsoft dot com
Description:
------------
Test only fails for this windows operating system for x86 TS build with opcache enabled. 

Failed Test: ext\opcache\tests\001_cli.phpt

Test script:
---------------
--TEST--
001: O+ works in CLI
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_cache_only=0
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$config = opcache_get_configuration();
$status = opcache_get_status();
var_dump($config["directives"]["opcache.enable"]);
var_dump($config["directives"]["opcache.enable_cli"]);
var_dump($status["opcache_enabled"]);
?>
--EXPECT--
bool(true)
bool(true)
bool(true)


Expected result:
----------------
bool(true)
bool(true)
bool(true)

Actual result:
--------------
bool(true)
bool(true)
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-22 21:43 UTC] v-altruo at microsoft dot com
Test also fails (same output) for windows server 2019. However, for all builds whenever opcache is enabled.
 [2019-10-23 08:53 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-10-23 08:53 UTC] cmb@php.net
This test failure hints at an OPcache startup failure, which can
happen on Windows (especially on x86), if no proper
opcache.file_cache is set or opcache.file_cache_fallback is
disabled.  In this case there should be a respective message in
the log file, if one is set via opcache.error_log.
 [2019-11-03 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC