php.net |  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: -
Votes:8
Avg. Score:3.5 ± 0.9
Reproduced:8 of 8 (100.0%)
Same Version:2 (25.0%)
Same OS:7 (87.5%)
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mentalstring+phpnet at gmail dot com
New email:
PHP Version: OS:

 

 [2015-12-06 13:02 UTC] mentalstring+phpnet at gmail dot com
Description:
------------
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:

opcache.error_log=/var/log/php.log


apache configuration:

php_value opcache.error_log "/var/www/example.com/log/php.log"

Expected result:
----------------
opcache_get_configuration() should show:

opcache.error_log = "/var/www/www.postcrossing.com/log/php.log"

Actual result:
--------------
opcache_get_configuration() shows:

opcache.error_log=/var/log/php.log

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC