Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.1

Bug #5045 File::stripTrailingSeparators should not rtrim the path "/" on linux
Submitted: 2005-08-09 23:03 UTC
From: simeonf at gmail dot com Assigned: mike
Status: Closed Package: File
PHP Version: 4.3.10 OS: Linux
Roadmaps: 1.3.0a1    
Subscription  


 [2005-08-09 23:03 UTC] simeonf at gmail dot com
Description: ------------ On linux, "/" is a valid path representing the root. File::stripTrailingSeparators should not rtrim the path if it consists of "/" and $seperator = "/". For all other paths, "/my/path/to/dir/foo/" is the same as "/my/path/to/dir/foo", but "/" != "". Test script: --------------- <?php include "File.php"; var_dump(File::stripTrailingSeparators("/")); ?> Expected result: ---------------- string(1) "/" Actual result: -------------- string(0) ""

Comments

 [2005-09-30 05:03 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-09-30 10:48 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!