Hi Timwi,
Not questioning anything, but out of interest: I don't understand how this saves any stat()s? Surely multiple calls to require_once for the same file still require only one stat().
require_once() calls realpath() every time, which calls stat() for every directory up to the root.
Domas