Home » File System » File » Bug #3357
realPath() ends up in an infinite loop
Details
| 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) |
Comments
[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