mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
php7.2호환을 위해 변경한 클래스 Object 를 BaseObject으로 변경
This commit is contained in:
parent
f4c19a3e0f
commit
f3f40f6859
109 changed files with 976 additions and 976 deletions
|
|
@ -124,7 +124,7 @@ class extract
|
|||
// If local file
|
||||
if(strncasecmp('http://', $this->filename, 7) !== 0)
|
||||
{
|
||||
if(!file_exists($this->filename)) return new Object(-1,'msg_no_xml_file');
|
||||
if(!file_exists($this->filename)) return new BaseObject(-1,'msg_no_xml_file');
|
||||
$this->fd = fopen($this->filename,"r");
|
||||
// If remote file
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@ class extract
|
|||
if(!$url_info['path']) $url_info['path'] = '/';
|
||||
|
||||
$this->fd = @fsockopen($url_info['host'], $url_info['port']);
|
||||
if(!$this->fd) return new Object(-1,'msg_no_xml_file');
|
||||
if(!$this->fd) return new BaseObject(-1,'msg_no_xml_file');
|
||||
// If the file name contains Korean, do urlencode(iconv required)
|
||||
$path = $url_info['path'];
|
||||
if(preg_match('/[\xEA-\xED][\x80-\xFF]{2}/', $path)&&function_exists('iconv'))
|
||||
|
|
@ -157,7 +157,7 @@ class extract
|
|||
$buff .= $str = fgets($this->fd, 1024);
|
||||
if(!trim($str)) break;
|
||||
}
|
||||
if(preg_match('/404 Not Found/i',$buff)) return new Object(-1,'msg_no_xml_file');
|
||||
if(preg_match('/404 Not Found/i',$buff)) return new BaseObject(-1,'msg_no_xml_file');
|
||||
}
|
||||
|
||||
if($this->startTag)
|
||||
|
|
@ -181,7 +181,7 @@ class extract
|
|||
$this->isFinished = false;
|
||||
}
|
||||
|
||||
return new Object();
|
||||
return new BaseObject();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue