On Monday, June 9, 2003, at 12:58 PM, Andi Gutmans wrote:
At 01:27 PM 6/4/2003 -0400, Ilia A. wrote:Here is an analysis of the situation as it stands with PHP 4.3.3. As far as I
can tell that even when opening files with the full path we do a lot of
completely unnecessary work.
We start from expand_filepath() which, gets called when opening a file. This
function does a getcwd() everytime it is called even if path is full
(/path/to/script.php), as far as I can tell completely useless syscal.
Two different full paths can point to the same file and not using realpath() would break include_once() and require_once().
We might be able to use stat() information to compare the files but it would require some thinking.
APC uses inode number, device number. I'm not sure if that is portable to win32 though.
George
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php