php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45183 php_admin_value and php_admin_flag does not work.
Submitted: 2008-06-05 08:33 UTC Modified: 2008-06-05 16:04 UTC
From: olivier dot kinet at oce dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: Solaris 10
Private report: No CVE-ID: None
 [2008-06-05 08:33 UTC] olivier dot kinet at oce dot com
Description:
------------
When using php_admin_value, php_value, php_admin_flag or php_flag in the file httpd.conf of apache, the variables I want modify remain with their default values. I get this problem only on Solaris with php 5.2.5. That worked with php 5.0.4 with the same httpd.conf so I believe it to be a bug. This is the apache version: Apache/1.3.33 (Unix) PHP/5.2.5 mod_ssl/2.8.22 OpenSSL/0.9.7f. For the moment, the only solution to overwrite the default value of the php variables is to use the php.ini or the function ini_set().

Reproduce code:
---------------
Here are the directives in the httpd.conf file.

php_admin_flag magic_quotes_gpc on
php_admin_value error_reporting 1
php_admin_flag log_errors on
php_admin_flag display_errors off
php_admin_value error_log /tmp/phperrors
php_admin_value session.save_path "/tmp"

After having started apache with those directives, the phpinfo() function shows that the master value are preserved.

Expected result:
----------------
magic_quotes_gpc   = On
error_reporting    = 1
log_errors         = On
display_errors     = Off
error_log          = /tmp/phperrors
session.save_path  = /tmp


Actual result:
--------------
magic_quotes_gpc   = On
error_reporting    = no value
log_errors         = Off
display_errors     = On
error_log          = no value
session.save_path  = no value

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-05 16:04 UTC] jani@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 21:00:03 2025 UTC