@@ 605-609 (lines=5) @@ | ||
602 | } |
|
603 | ||
604 | if (is_array($func)) { |
|
605 | if (is_object($func[0])) { |
|
606 | $funcName = get_class($func[0]) . '->' . $func[1]; |
|
607 | } else { |
|
608 | $funcName = implode('::', $func); |
|
609 | } |
|
610 | } else if ($func instanceof \Closure) { |
|
611 | $funcName = 'Closure'; |
|
612 | } else { |
@@ 166-170 (lines=5) @@ | ||
163 | Logger::instance()->errorLog('XML-RPC: ' . __METHOD__ . ': syntax for function to be wrapped is wrong'); |
|
164 | return false; |
|
165 | } |
|
166 | if (is_string($callable[0])) { |
|
167 | $plainFuncName = implode('::', $callable); |
|
168 | } elseif (is_object($callable[0])) { |
|
169 | $plainFuncName = get_class($callable[0]) . '->' . $callable[1]; |
|
170 | } |
|
171 | $exists = method_exists($callable[0], $callable[1]); |
|
172 | } else if ($callable instanceof \Closure) { |
|
173 | // we do not support creating code which wraps closures, as php does not allow to serialize them |