|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #43882 Include_path escape sequences problem
Submitted: 2008-01-17 19:03 UTC Modified: 2008-09-20 01:00 UTC
From: dutow at nwi dot hu Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: 5.3CVS-2008-01-17 (snap) OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: dutow at nwi dot hu
New email:
PHP Version: OS:


 [2008-01-17 19:03 UTC] dutow at nwi dot hu
PHP escapes escape sequences in include_path.

Reproduce code:
include_path = ".;d:\web\php\pear;d:\web\nowww"




Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-18 01:21 UTC]
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-02-04 20:04 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.. :)

 [2008-09-20 01:00 UTC] doc-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 23 17:01:23 2020 UTC