|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-08-03 11:30 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Package: Dynamic loading
+Package: *Configuration Issues
-Assigned To:
+Assigned To: cmb
[2021-08-03 11:30 UTC] cmb@php.net
[2021-08-15 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 17:00:01 2025 UTC |
Description: ------------ PHP version: 5.3.8-ZS5.5.0 ini_set function returns false if the given directive is named in a host specific section. As the result, the directive's value is not changed. This bug is reproducible with other similar functions like set_include_path. Don't forget to restart your webserver before testing since this bug requires modifying php.ini file. Test script: --------------- Insert the following section into your php.ini file:<br /> <br /> [Zend]<br /> include_path=".;C:\Program Files\Zend\ZendServer\share\ZendFramework\library"<br /> <br /> [HOST=anything.com]<br /> include_path=".;C:\my_library"<br /> <br /> <?php echo "Executing: ini_set('include_path', 'C:\another_library')<br />\n"; $result = ini_set('include_path', 'C:\another_library'); echo 'ini_set returned: ' . ($result ? 'true' : 'false'); echo "<br />\n"; echo 'And current value for directive is: ' . ini_get('include_path'); Expected result: ---------------- Insert the following section into your php.ini file:<br /> <br /> [Zend]<br /> include_path=".;C:\Program Files\Zend\ZendServer\share\ZendFramework\library"<br /> <br /> [HOST=anything.com]<br /> include_path=".;C:\my_library"<br /> <br /> Executing: ini_set('include_path', 'C:\another_library')<br /> ini_set returned: true<br /> And current value for directive is: .;C:\another_library Actual result: -------------- Insert the following section into your php.ini file:<br /> <br /> [Zend]<br /> include_path=".;C:\Program Files\Zend\ZendServer\share\ZendFramework\library"<br /> <br /> [HOST=anything.com]<br /> include_path=".;C:\my_library"<br /> <br /> Executing: ini_set('include_path', 'C:\another_library')<br /> ini_set returned: false<br /> And current value for directive is: .;C:\my_library