php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #936 File system functions
Submitted: 1998-11-20 10:27 UTC Modified: 1998-11-23 00:11 UTC
From: JMLASC at IDT dot NET Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.5 OS: Win32
Private report: No CVE-ID: None
 [1998-11-20 10:27 UTC] JMLASC at IDT dot NET
 In the Win32 world of forward slashes "\", if the path string of the file sytem commands contain an "escape char", i.e. \r, \n, etc then the path to the file is not read correctly by PHP3. 
I.E. $cat=fopen("c:\home\result\new\xxx.dat","a");
is read as C:\home
esult
ew\xxx.dat.

This is not that important, the work around is simply, don't use escape characters in the path string.
just if you get around to fixing it. 
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-11-23 00:11 UTC] jim
Or escape the backslashes properly, or use a single-quoted string.

This is not a bug. (The same issue exists in C, Perl, and other languages
that treat the backslash as an escape character.)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 10:01:32 2024 UTC