Skip to content

Commit e126e24

Browse files
committed
review: removed optional Filter dependency from OPcache detection
1 parent 2c77d94 commit e126e24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

run-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,8 @@ function write_information(array $user_tests, $phpdbg): void
838838
PHP_VERSION : " , phpversion() , "
839839
ZEND_VERSION: " , zend_version() , "
840840
PHP_OS : " , PHP_OS , " - " , php_uname() , "
841-
OPCACHE CLI : " , filter_var(ini_get("opcache.enable"), FILTER_VALIDATE_BOOL)
842-
&& filter_var(ini_get("opcache.enable_cli"), FILTER_VALIDATE_BOOL) ? "enabled" : "disabled" , "
841+
OPCACHE CLI : " , ini_get("opcache.enable") && ini_get("opcache.enable_cli")
842+
? "enabled" : "disabled" , "
843843
INI actual : " , realpath(get_cfg_var("cfg_file_path")) , "
844844
More .INIs : " , (function_exists(\'php_ini_scanned_files\') ? str_replace("\n","", php_ini_scanned_files()) : "** not determined **"); ?>';
845845
save_text($info_file, $php_info);

0 commit comments

Comments
 (0)