[摘要]limit < 1); if (is_error) return this->error_occur(0x000B, __FUNCTION__); ...
$limit < 1);
if ($is_error) return $this->error_occur(0x000B, __FUNCTION__);
unset($is_error);
$result = array();
/* array() == FALSE,所以需要使用 === */
if (FALSE===$i=$this->list_dir($path)) return FALSE; // 如果不能列举目录,返回
for ($j=0,$k=count($i);$j<$k;$j++) {
if ($i[$j]["type"]==-1) continue; // 对于非目录非文件项目,跳过
if ($i[$j]["type"]==0&&$sub_dir_level) { // 如果需要搜索下层目录
if (FALSE===$l=$this->seek_file($pattern,$i[$j]["location"],$seek_type,($sub_dir_level - 1),$limit)) return FALSE;
$result = array_merge($result, $l); // 将下层目录搜索结果添加
}
if ($seek_type+$i[$j]["type"]==1
关键词:PHP文件系统基本设置类