php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51364 ini_set() of PHP_INI_ALL fails when php_admin_* is used
Submitted: 2010-03-23 14:24 UTC Modified: 2010-03-24 02:22 UTC
From: Bjorn dot Wiberg at its dot uu dot se Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.13 OS: AIX 5.3 TL8 (5300-08-01-0819)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Bjorn dot Wiberg at its dot uu dot se
New email:
PHP Version: OS:

 

 [2010-03-23 14:24 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-24 02:22 UTC] jani@php.net
-Status: Open +Status: Bogus
 [2010-03-24 02:22 UTC] jani@php.net
It was _fixed_ LONG time ago. Try NEWS.. no bug here.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 20:01:24 2020 UTC