ID: 45914
Updated by: [email protected]
Reported By: w dot ashcroft at redfoxuk dot com
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: Windows Server 2003
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-08-25 19:32:02] w dot ashcroft at redfoxuk dot com
Description:
------------
It seems then when using Per Directory Values in the Windows Registry,
these values can then not be changed with ini_set() - for example we set
the sendmail_from value for each individual website using the
registry-based Per Directory Values, but the website owners should then
be able to set their own from address in their scripts using ini_set().
As I understand it, the in-script ini_set() should be the last possible
place a value can be changed (at runtime); not the registry.
Removing the registry entry gives the expected result of:
[email protected][email protected]
Reproduce code:
---------------
php.ini
sendmail_from = [email protected]
HKLM\SOFTWARE\PHP\Per Directory Values\[DirPath]
sendmail_from = [email protected]
<?php
echo ini_get("sendmail_from") . "<br>";
ini_set("sendmail_from", "[email protected]");
echo ini_get("sendmail_from");
?>
Expected result:
----------------
[email protected][email protected]
Actual result:
--------------
[email protected][email protected]
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45914&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.