#45992 [Opn->Bgs]: \t in include_path is parsed as tabulator
| From: | tularis@php.net | Date: | Thu, 04 Sep 2008 12:54:52 +0000 |
| Subject: | #45992 [Opn->Bgs]: \t in include_path is parsed as tabulator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128672@lists.php.net to get a copy of this message | ||
ID: 45992
Updated by: tularis@php.net
Reported By: ckl at ecw dot de
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Windows XP SP 3
PHP Version: 5.3.0alpha2
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
\t is still a special-character: the tab. Just like \r is a
Carriage-Return and \n is a newline. It has always been this way, and is
completely expected. These characters simply need to be escaped in
double-quoted strings:
".;C:\\ckl\\dev\\lang\\php\\lib\\trunk"
Previous Comments:
------------------------------------------------------------------------
[2008-09-04 11:45:50] ckl at ecw dot de
Description:
------------
I know that the include_path should contain forward slashes, but PHP
5.2.x still accepted backslashes in path.
If you use a backslash in your path, the next character is interpreted
as an metachar (\trunk is interpreted as \t => tab).
Reproduce code:
---------------
include_path = ".;C:\ckl\dev\lang\php\lib\trunk"
Expected result:
----------------
echo get_include_path() => .;C:\ckl\dev\lang\php\lib\trunk
Actual result:
--------------
echo get_include_path() => .;C:\ckl\dev\lang\php\lib runk
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45992&edit=1