ID: 41561
Updated by: [EMAIL PROTECTED]
Reported By: samy-delux at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: Ubuntu Linux
PHP Version: 5.2.3
New Comment:
I don't have apache setup, so can you try and see if that actually
changes it for real? ie. something like:
$s = '';
while(1) $s.='fooooooooooooooooooooooooooooooooooooo';
Previous Comments:
------------------------------------------------------------------------
[2007-06-01 15:23:16] samy-delux at gmx dot de
Description:
------------
When I set a value inside the httpd.conf with php_admin_value or
php_admin_flag that is INI_ALL or INI_PERDIR it can be overwritten at
runtime using ini_set()
I don't think this should be possible. But the documentation on this
problem doesn't assure me if this is a bug or a feature!
Reproduce code:
---------------
/etc/apache2/httpd.conf :
php_admin_value memory_limit 3145728
iniset_test.php :
<?php
$old = ini_set("memory_limit", 20971520);
echo "old: ".$old;
$new = ini_get("memory_limit");
echo "<br>new: ".$new;
?>
Expected result:
----------------
The result is the following:
old: 3145728
new: 3145728
Actual result:
--------------
The result is the following:
old: 3145728
new: 20971520
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41561&edit=1