#43882 [Opn->Fbk]: Include_path escape sequences problem
| From: | lbarnaud@php.net | Date: | Fri, 12 Sep 2008 14:18:09 +0000 |
| Subject: | #43882 [Opn->Fbk]: Include_path escape sequences problem | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1150@lists.php.net to get a copy of this message | ||
ID: 43882
Updated by: lbarnaud@php.net
Reported By: dutow at nwi dot hu
-Status: Open
+Status: Feedback
Bug Type: Documentation problem
Operating System: Windows XP SP2
PHP Version: 5.3CVS-2008-01-17 (snap)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
Previous Comments:
------------------------------------------------------------------------
[2008-02-04 20:04:36] jani@php.net
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.. :)
------------------------------------------------------------------------
[2008-01-18 01:21:56] jani@php.net
Unfortunate side-effect of allowing it elsewhere.
You can always use single quotes though..iirc. :)
I'll see what I can do about it.
------------------------------------------------------------------------
[2008-01-17 19:03:49] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43882&edit=1