Don't include files using a relative path; always run through the include_path
authorChuck Hagenbuch <chuck@horde.org>
Thu, 15 Oct 2009 17:59:58 +0000 (13:59 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Thu, 15 Oct 2009 17:59:58 +0000 (13:59 -0400)
commitb7e84bf5cb3f83c9e639ace73472f9b069799a84
treebad19fb82239d9e5e9551d28efa3e0c8fdbf5066
parent5c5d64a2d94b62e0154e5e8648e9139a4b3e61ae
Don't include files using a relative path; always run through the include_path
explicitly trying absolute paths.

This avoids PHP checking the local directory for a file even if '.' isn't in the
include_path. Also, we now use realpath() directly instead of
Horde_Util::realPath(). This both reduces dependencies, and it removes invalid
paths from the include_path. The generic realPath() has its use, but here we're
dealing with real files on the filesystem.
framework/Autoloader/lib/Horde/Autoloader.php