#45987 [NEW]: Problem in paths that have backslashes
| From: | masiena at hotmail dot com | Date: | Wed, 03 Sep 2008 19:54:17 +0000 |
| Subject: | #45987 [NEW]: Problem in paths that have backslashes | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-128654@lists.php.net to get a copy of this message | ||
From: masiena at hotmail dot com
Operating system: Windows Server 2003
PHP version: 5.3CVS-2008-09-03 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: Problem in paths that have backslashes
Description:
------------
On Windows, directives that have backslashes (\) in file paths are
broken.
When something like \t is seen (like in error_log="c:\temp\err.log"), it's
interpreted like a control sequence (in the example, a tab), and no error
logs are generated. This behavior is present in many directives relative to
file paths.
Solution (temporary?): use forward slashes instead (even in Windows).
The same is valid for PHP 6.
This is a PATH problem because, where error_log=syslog is used, the
messages are correctly sent to Event Viewer.
Another clue: phpinfo() output "eats" \t.
Reproduce code:
---------------
In PHP.INI:
error_log = "D:\Progs\php\temp\Logs\php5.3_error_log.txt"
include_path = ".;D:\Progs\php\include"
etc.
Expected result:
----------------
No error logs are generated.
--
Edit bug report at http://bugs.php.net/?id=45987&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45987&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45987&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45987&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45987&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45987&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45987&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45987&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45987&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45987&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45987&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45987&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45987&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45987&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45987&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45987&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45987&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45987&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45987&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45987&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45987&r=mysqlcfg