php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45987 Problem in paths that have backslashes
Submitted: 2008-09-03 19:54 UTC Modified: 2009-02-19 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: masiena at hotmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3CVS-2008-09-03 (snap) OS: Windows Server 2003
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-09-03 19:54 UTC] masiena at hotmail dot com
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-09-03 19:59 UTC] pajoye@php.net
Try without the double quotes in php.ini or use / as path separator.

\x is used as special characters in double quotes string, nothing new here. \t is a tab, \n a new line, etc.
 [2008-09-11 01:00 UTC] php-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".
 [2009-02-11 21:30 UTC] felipe@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-02-19 01:00 UTC] php-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 May 02 21:01:31 2024 UTC