#22740 [Opn->Ana]: add optional parameter to realpath() to use include_path

From: Date: Mon, 17 Mar 2003 02:45:55 +0000
Subject: #22740 [Opn->Ana]: add optional parameter to realpath() to use include_path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35720@lists.php.net to get a copy of this message
ID: 22740 Updated by: rasmus@php.net 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

« previous php.bugs (#35720) next »