|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #70353 predefined constant missing
Submitted: 2015-08-25 08:55 UTC Modified: 2015-08-25 09:08 UTC
From: paulo dot castro48 at gmail dot com Assigned: salathe (profile)
Status: Not a bug Package: Documentation problem
PHP Version: 5.6.13RC1 OS: WIN
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
25 + 47 = ?
Subscribe to this entry?

 [2015-08-25 08:55 UTC] paulo dot castro48 at gmail dot com
From manual page:

There is no predefined slash that depends on OS
this is a problem when working in both linux and windows you have to change the slashed everytime you switch servers.

define('PHP_SLASH', ( preg_match( '/^WIN/', PHP_OS ) ) ? "\\" : "/" );



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-25 09:08 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: salathe
 [2015-08-25 09:09 UTC]
It looks like you want DIRECTORY_SEPARATOR [1]. The value of this constant is \ (backslash) on Windows, and / (forward slash) elsewhere.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Nov 28 06:01:24 2020 UTC