Edit report at https://bugs.php.net/bug.php?id=78723&edit=1
ID: 78723
Updated by: [email protected]
Reported by: v-altruo at microsoft dot com
Summary: Opcache enabled but fails opcache_enabled check
-Status: Open
+Status: Feedback
Type: Bug
Package: Testing related
Operating System: Windows Server 2012 R2
PHP Version: 7.4.0RC4
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2019-10-22 21:43:30] 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-22 19:10:37] 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)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78723&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.