ID: 45992 User updated by: ckl at ecw dot de 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:
As I already mentioned in my initial post, I know that backslashes shouldn't be used - but this was possible till 5.2.6. Is that a bug in 5.2.6 that backslashes are *not* interpreted as a beginning for a coming meta character? To summarize: PHP 5.2.6: include_path = ".;C:\ckl\dev\lang\php\lib\trunk" get_include_path = ".;C:\ckl\dev\lang\php\lib\trunk" ( WRONG ) PHP include_path = ".;C:\ckl\dev\lang\php\lib\trunk" get_include_path = ".;C:\ckl\dev\lang\php\lib runk" ( RIGHT ) Conclusion: include_path in 5.2.6 is not parsed correctly. Please change the version info of this bug if you agree with me. Previous Comments: ------------------------------------------------------------------------ [2008-09-04 13:04:21] [EMAIL PROTECTED] Or don't use double quotes. ------------------------------------------------------------------------ [2008-09-04 12:54:51] [EMAIL PROTECTED] 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