From: Andrey Kutejko Date: Fri, 1 Aug 2014 20:14:15 +0000 (+0300) Subject: namespaced functions X-Git-Tag: 0.6~202 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=4aaa1783117c5d6f6dd48a3019f6e7b06a010b2d;p=ipf.git namespaced functions --- diff --git a/ipf.php b/ipf.php index 1920260..96378fc 100644 --- a/ipf.php +++ b/ipf.php @@ -118,7 +118,7 @@ final class IPF if (is_array($function)) { // object/class method $callable = $function; - } elseif (preg_match('/^(\w+)::(\w+)$/', $function, $m)) { + } elseif (preg_match('/^([\\\\\w]+)::(\w+)$/i', $function, $m)) { // static method $callable = array($m[1], $m[2]); } else {