|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-01-17 19:03 UTC] dutow at nwi dot hu
Description:
------------
PHP escapes escape sequences in include_path.
Reproduce code:
---------------
include_path = ".;d:\web\php\pear;d:\web\nowww"
<?php
ini_get('include_path');
?>
Expected result:
----------------
.;d:\web\php\pear;d:\web\nowww
Actual result:
--------------
.;d:\web\php\pear;d:\web
owww
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 15:00:01 2025 UTC |
This needs to be documented. From PHP 5.3 and above you should either use single quotes or \\ to get same effect. This is required for allowing to use \" and some cases \n \r \t in quoted strings in php.ini. This will expand to whatever FOO is set (either in environment or before in the php.ini file): foobar = "Some text.\n\t\"${FOO}\" is set in env or in this ini file before this line." This will be as is: foobar = 'Some text.\n\t\"${FOO}\" is set in env or in this ini file before this line.' Pretty much like it is with PHP scripts too.. :)