|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-06-02 13:04 UTC] cmb@php.net
[2020-06-02 13:04 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2020-06-03 09:07 UTC] cmb@php.net
[2020-06-03 09:07 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ For some INI settings OPcache adjusts the given values if they are not permissible. However, despite some (futile) efforts in the code, the originally passed values are reported by ini_get() and phpinfo(), while opcache_get_configuration() reports the adjusted values. This is at least very confusing. The affected INI settings are: * opcache.max_wasted_percentage * opcache.memory_consumption * opcache.max_accelerated_files Test script: --------------- <?php var_dump( ini_get('opcache.max_accelerated_files'), opcache_get_configuration()['directives']['opcache.max_accelerated_files'] ); ?> Expected result: ---------------- bool(true) Actual result: -------------- bool(false) when run with opcache.max_accelerated_files=10