php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-18 01:21 UTC] 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-02-04 20:04 UTC] 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-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: Fri Nov 27 18:01:25 2020 UTC