#45992 [Bgs]: \t in include_path is parsed as tabulator

From: Date: Thu, 04 Sep 2008 13:04:21 +0000
Subject: #45992 [Bgs]: \t in include_path is parsed as tabulator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128673@lists.php.net to get a copy of this message
 ID:               45992
 Updated by:       pajoye@php.net
 Reported By:      ckl at ecw dot de
 Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: Windows XP SP 3
 PHP Version:      5.3.0alpha2
 New Comment:

Or don't use double quotes.


Previous Comments:
------------------------------------------------------------------------

[2008-09-04 12:54:51] tularis@php.net

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"


------------------------------------------------------------------------

[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



Thread (4 messages)

« previous php.bugs (#128673) next »