Edit report at https://bugs.php.net/bug.php?id=78723&edit=1
ID: 78723
User updated by: v-altruo at microsoft dot com
Reported by: v-altruo at microsoft dot com
Summary: Opcache enabled but fails opcache_enabled check
Status: Open
Type: Bug
Package: Testing related
Operating System: Windows Server 2012 R2
PHP Version: 7.4.0RC4
Block user comment: N
Private report: N
New Comment:
Test also fails (same output) for windows server 2019. However, for all builds
whenever opcache is enabled.
Previous Comments:
------------------------------------------------------------------------
[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