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

Bug #4911 Bad test in File_Util::isAbsolute
Submitted: 2005-07-25 18:22 UTC
From: kars at kde dot nl Assigned: mike
Status: Closed Package: File
PHP Version: 4.4.0 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-25 18:22 UTC] kars at kde dot nl
Description: ------------ I was browsing through File/Util.php on my Linux box with PHP 4.4.0, and noticed that isAbsolute considers a path that contains two periods -anywhere- in the path as a relative path. It's still there in CVS for as far as I can tell, on line 179. Test script: --------------- require_once ('File/Util.php'); $filename = '/pub/audio/misc/Just... a song.mp3'; if (File_Util::isAbsolute($filename)) { echo "'$filename' is absolute."; } else { echo "'$filename' is relative."; } Expected result: ---------------- The test should produce: '/pub/audio/misc/Just... a song.mp3' is absolute. Actual result: -------------- What I got was: '/pub/audio/misc/Just... a song.mp3' is relative.

Comments

 [2005-08-09 07:52 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!