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

Bug #3357 realPath() ends up in an infinite loop
Submitted: 2005-02-02 07:45 UTC
From: cmoehrke at netviser dot de Assigned: mike
Status: Closed Package: File
PHP Version: 5.0.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 + 31 = ?

 
 [2005-02-02 07:45 UTC] cmoehrke at netviser dot de
Description: ------------ Probably this is just a problem with the documentation as there is no usage example of realPath(). I tried several different approaches of using realPath() but everything I tried ended up in an infinite loop. But whatever the purpose of that method may be, it shouldn't result in an inifite loop Reproduce code: --------------- echo File_Util::realPath("."); echo File_Util::realPath(".."); echo File_Util::realPath("./home"); echo File_Util::realPath("home"); Expected result: ---------------- ? the purpose of the method is not documented yet. Actual result: -------------- nothing

Comments

 [2005-02-02 11:21 UTC] mike
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.
 [2005-02-02 11:29 UTC] mike
Just a note: File_Util::realPath() is for building full paths for non-existent paths.