function _query_stat_cache($path) { $dirs = explode('/', preg_replace('#^/|/(?=/)|/$#', '', $path)); $temp =& $this->stat_cache; foreach ($dirs as $dir) { if (!isset($temp[$dir])) { return null; } $temp =& $temp[$dir]; } return $temp; }