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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dutow at nwi dot hu
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 10:01:28 2024 UTC