Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2005 at 08:47 UTC
Updated:
25 Jan 2006 at 08:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
drewish commentedthat last patch had a bug in it. it was setting \s on urls.
Comment #2
drewish commentedwhoops, wrong constant in the title
Comment #3
morbus iffI'm a little ... ... well, I can't say with any certainty if this is a good idea or not. Neither constant seems to have very decent documentation and my tests, on OS X and webchick's win32 box, shows that carry the same value (I originally thought that PATH may be related to a URL, but it's not - perhaps they're thinking UNC paths?). They return what I expect, certainly ("/" on *nix and "\" on Win32), but I'd like to hear more about the bugs you're facing with the current code.
Comment #4
morbus iffBased on some discussions in freenode's #php, "/" is supposed to be handled transparently and crossplatform-like internally to PHP. So, instead of "c:\\winnt\\tmp", for example, it'd be "c:/winnt/tmp". They suggest there isn't a need for DIRECTORY SEPARATOR at all. I've been unable, however, to find official documentation that suggests the same.
Comment #5
morbus iffAccording to dirname (and other directory/path related functions): On Windows, both slash (/) and backslash (\) are used as directory separator character. In other environments, it is the forward slash (/). Which would suggest that the _SEPARATOR stuff isn't needed in Drupal, and we should change my hardcoded "c:\\" stuff to "c:/" instead.
Comment #6
moshe weitzman commentedComment #7
ax commentedwe'll definitely want to use / instead of DIRECTORY_SEPARATOR. see also http://drupal.org/node/7235. marking WON'T FIX.