From: olivier dot kinet at oce dot com Operating system: Solaris 10 PHP version: 5.2CVS-2008-06-05 (snap) PHP Bug Type: Reflection related Bug description: php_admin_value and php_admin_flag does not work.
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 bug report at http://bugs.php.net/?id=45183&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45183&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45183&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45183&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45183&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45183&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45183&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45183&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45183&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45183&r=support Expected behavior: http://bugs.php.net/fix.php?id=45183&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45183&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45183&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45183&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45183&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45183&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45183&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45183&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45183&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45183&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45183&r=mysqlcfg