PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » File System » File » Bug #3357

realPath() ends up in an infinite loop

Details

Submitted2005-02-02 07:45 UTC
Fromcmoehrke at netviser dot de
Assignedmike
StatusClosed
PackageFile
PHP Version5.0.3
OSLinux
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