|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71042 opcache directives are not PHP_INI_SYSTEM
Submitted: 2015-12-06 13:02 UTC Modified: -
Avg. Score:3.4 ± 0.9
Reproduced:7 of 7 (100.0%)
Same Version:2 (28.6%)
Same OS:6 (85.7%)
From: mentalstring+phpnet at gmail dot com Assigned:
Status: Open Package: opcache
PHP Version: 5.6.16 OS: linux
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:
Solve the problem:
36 - 9 = ?
Subscribe to this entry?

 [2015-12-06 13:02 UTC] mentalstring+phpnet at gmail dot com
According to documentation, most opcache directives are PHP_INI_SYSTEM so they should be changeable on httpd.conf (php_value et all).

I was trying to update opcache.error_log with php_value but the value set in php.ini is the one outputed by opcache_get_configuration() is the one being used. I tested updating a few other opcache PHP_INI_SYSTEM directives with no success — only opcache.enable worked.

Test script:
in php.ini:


apache configuration:

php_value opcache.error_log "/var/www/"

Expected result:
opcache_get_configuration() should show:

opcache.error_log = "/var/www/"

Actual result:
opcache_get_configuration() shows:



Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 11:01:29 2024 UTC