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

Bug #16425 File_Util::isAbsolute(), Windows can resolve /foo/bar as absolute
Submitted: 2009-07-10 18:31 UTC
From: felixsigl Assigned: dufuz
Status: Closed Package: File_Util
PHP Version: 5.2.5 OS: Windows
Roadmaps: (Not assigned)    

 [2009-07-10 18:31 UTC] felixsigl (Felix Siglreithmaier)
Description: ------------ On Windows (Testsystem is XAMPP) it is possible to use eg. '/Programme/xampp/htdocs/' for all file operations (dont ask me why). but File_Util::isAbsolute reports that the path is relative. Test script: --------------- require_once ('File/Util.php'); $filename = '/Programme/xampp/htdocs/'; if (File_Util::isAbsolute($filename)) { echo "'$filename' is absolute."; } else { echo "'$filename' is relative."; } Expected result: ---------------- '/Programme/xampp/htdocs/' is absolute. Actual result: -------------- '/Programme/xampp/htdocs/' is relative.


 [2010-04-26 02:32 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Package: File +Package: File_Util
 [2011-03-12 22:48 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Summary: File_Util::isAbsolute +Summary: File_Util::isAbsolute(), Windows can resolve /foo/bar as absolute
 [2011-03-12 23:00 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.