ID:          22740
 Updated by:  [EMAIL PROTECTED]
 Reported By: ben at spamcop dot net
-Status:      Open
+Status:      Analyzed
 Bug Type:    Feature/Change Request
 PHP Version: 4.3.1
 New Comment:

But why attach this to the realpath() call?  Do you realize how
amazingly expensive realpath()'ing multiple paths would be?  There is a
stat syscall for each and every directory in each path plus the final
stat for the file itself.  So say you had an include_path with 4 paths
in it each one being 5 directories deep, that one realpath() call will
cost you 25 stat calls.  Ouch!


Previous Comments:
------------------------------------------------------------------------

[2003-03-16 20:35:57] ben at spamcop dot net

Many file open functions have an optional parameter that allows for
searching the include_path for the given file.

If such an optional parameter would be added to realpath(), all
functions that do not offer such a parameter could be passed files from
the include_path, too.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22740&edit=1

Reply via email to