$filepaths = $notfound = array();
foreach ($paths as $path) {
- if (@file_exists($file = $path.DIRECTORY_SEPARATOR.$name)) {
+ if (@file_exists($file = $path.\DIRECTORY_SEPARATOR.$name)) {
if (true === $first) {
return $file;
}
private function isAbsolutePath($file)
{
if ('/' === $file[0] || '\\' === $file[0]
- || (strlen($file) > 3 && ctype_alpha($file[0])
+ || (\strlen($file) > 3 && ctype_alpha($file[0])
&& ':' === $file[1]
&& ('\\' === $file[2] || '/' === $file[2])
)