mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
r6299. 서버에 따라서 class, method 대소문자 구분을 하지 않을 경우를대비한 코드를 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6300 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
57ec3dc213
commit
7f56a4f19d
1 changed files with 6 additions and 2 deletions
|
|
@ -141,7 +141,7 @@
|
|||
if(!$str) return $matches[0];
|
||||
if(!in_array(substr($str,0,1),array('(','$'))) {
|
||||
if(preg_match('/^([^\( \.]+)(\(| \.)/i',$str,$m)) {
|
||||
$func = trim(strtolower($m[1]));
|
||||
$func = trim($m[1]);
|
||||
if(strpos($func,'::')===false) {
|
||||
if(!function_exists($func)) {
|
||||
return $matches[0];
|
||||
|
|
@ -149,7 +149,11 @@
|
|||
} else {
|
||||
list($class, $method) = explode('::',$func);
|
||||
if(!class_exists($class) || !in_array($method, get_class_methods($class))) {
|
||||
return $matches[0];
|
||||
// 서버 환경에 따라서 class, method가 대소문자 구별을 할때와 하지 않을때가 있음
|
||||
list($class, $method) = explode('::',strtolower($func));
|
||||
if(!class_exists($class) || !in_array($method, get_class_methods($class))) {
|
||||
return $matches[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue