Edit report at http://bugs.php.net/bug.php?id=51364&edit=1

 ID:               51364
 Updated by:       j...@php.net
 Reported by:      Bjorn dot Wiberg at its dot uu dot se
 Summary:          ini_set() of PHP_INI_ALL fails when php_admin_* is
                   used
-Status:           Open
+Status:           Bogus
 Type:             Bug
 Package:          PHP options/info functions
 Operating System: AIX 5.3 TL8 (5300-08-01-0819)
 PHP Version:      5.2.13

 New Comment:

It was _fixed_ LONG time ago. Try NEWS.. no bug here.


Previous Comments:
------------------------------------------------------------------------
[2010-03-23 14:24:00] Bjorn dot Wiberg at its dot uu dot se

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 this bug report at http://bugs.php.net/bug.php?id=51364&edit=1

Reply via email to