Edit report at https://bugs.php.net/bug.php?id=61298&edit=1
ID: 61298 Updated by: [email protected] Reported by: cornelius dot howl at gmail dot com Summary: Add an short alias DS for DIRECTORY_SEPARATOR -Status: Open +Status: Not a bug Type: Feature/Change Request Package: *Directory/Filesystem functions PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Constants should have clear names to help readability. If you want something shorter you can easily do const DS = DIRECTORY_SEPARATOR; or using define(). If you have issue typing names correctly you can also get an IDE. Previous Comments: ------------------------------------------------------------------------ [2012-03-06 06:39:18] cornelius dot howl at gmail dot com Description: ------------ Really hope there is a DS alias for DIRECTORY_SEPARATOR, and PATH_SEPARATOR. because it's too easy to make a typo, these keywords are hard to type. $path = 'root' . DS . 'to' . 'path' . DS . 'subpath' . DS . 'subpath' . DS . 'file.txt'; rather than: $path = 'root' . DIRECTORY_SEPARATOR . 'to' . 'path' . DIRECTORY_SEPARATOR . 'subpath' . DIRECTORY_SEPARATOR . 'subpath' . DIRECTORY_SEPARATOR . 'file.txt'; the later is uglier. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61298&edit=1
