|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-03 21:46 UTC] ab@php.net
[2014-01-03 21:46 UTC] ab@php.net
-Status: Open
+Status: Closed
[2014-01-03 22:09 UTC] ab@php.net
-Assigned To:
+Assigned To: ab
[2014-01-03 22:09 UTC] ab@php.net
[2014-01-04 01:28 UTC] ab@php.net
[2014-01-05 12:46 UTC] php at tokumaru dot org
[2014-01-05 18:30 UTC] ab@php.net
[2014-10-07 23:16 UTC] stas@php.net
[2014-10-07 23:27 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Description: ------------ basename function doesn't remove drive letter(example C:) on WIndows. if path includes directory separator characters('\' or '/'), basename function returns trailing name component of path. But, if path doesn't include directory separator characters, basename function returns file name with drive letter. Test script: --------------- echo basename('c:autoexec.bat'); Expected result: ---------------- autoexec.bat Actual result: -------------- c:autoexec.bat