Bug #51364 [NEW]: ini_set() of PHP_INI_ALL fails when php_admin_* is used
From:
Operating system: AIX 5.3 TL8 (5300-08-01-0819)
PHP version: 5.2.13
Package: PHP options/info functions
Bug Type: Bug
Bug description:ini_set() of PHP_INI_ALL fails when php_admin_* is used
Description:
------------
http://se.php.net/manual/en/configuration.changes.php
specifies that
php_admin_value can not be overridden using ini_set() anymore. When was
this changed? This was not so in the past and a version indication would be
good to have. (It appears that the behavior has indeed changed.)
Also, nothing is mentioned regarding ini_set() used on php_admin_flag
directives. Are those also unchangeable? If so, this should be mentioned
too, perhaps along with a version indication there too.
Attaching a sample script and settings for testing the behavior.
Test script:
---------------
httpd.conf:
php_admin_value session.gc_maxlifetime 3600
php_admin_value session.gc_probability 1
Test script:
<?php
$varname = 'session.gc_probability';
$value = 100;
$blnResult = ini_set($varname, $value);
if (empty($blnResult) or (!$blnResult)) {
echo "setting $varname could not be set, current value is " .
ini_get($varname) . " and desired value is $value";
} else {
echo "Setting updated -- old value $blnResult, desired value $value and
new value " . ini_get($varname);
}
?>
Expected result:
----------------
Setting updated -- old value 1, desired value 100 and new value 100
Actual result:
--------------
setting session.gc_probability could not be set, current value is 1 and
desired value is 100
--
Edit bug report at http://bugs.php.net/bug.php?id=51364&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51364&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51364&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51364&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51364&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51364&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51364&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51364&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51364&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51364&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51364&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51364&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51364&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51364&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51364&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51364&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51364&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51364&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51364&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51364&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51364&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51364&r=mysqlcfg
Thread (2 messages)
- Bjorn dot Wiberg at its dot uu dot se