ID: 45183 Updated by: [EMAIL PROTECTED] Reported By: olivier dot kinet at oce dot com -Status: Open +Status: Bogus Bug Type: Reflection related Operating System: Solaris 10 PHP Version: 5.2CVS-2008-06-05 (snap) New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2008-06-05 08:33:47] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45183&edit=1