[wp-trac] [WordPress Trac] #20849: 'ABSPATH' Invalid with Windows Servers

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 6 07:49:19 UTC 2012


#20849: 'ABSPATH' Invalid with Windows Servers
--------------------------+------------------------------
 Reporter:  admintiger    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Filesystem    |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by knutsp):

 Using DIRECTORY_SEPARATOR instead of chr(92) in the suggested str_replace
 function would be completely pointless. On non-Windows you will then
 replace all occurrences of "/" with "/".

 WordPress core have standardized on using "/" for creating paths, and
 that's how it should be, regardless of the actual DIRECTORY_SEPARATOR.

 The only usefulness of constant DIRECTORY_SEPARATOR is when parsing paths
 generated by the system, if you prefer not to substitute those before
 parsing.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20849#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list