]> git.andy128k.dev Git - ipf.git/commitdiff
namespaced functions
authorAndrey Kutejko <andy128k@gmail.com>
Fri, 1 Aug 2014 20:14:15 +0000 (23:14 +0300)
committerAndrey Kutejko <andy128k@gmail.com>
Fri, 1 Aug 2014 20:14:15 +0000 (23:14 +0300)
ipf.php

diff --git a/ipf.php b/ipf.php
index 192026019e46f78ac944d65e401e24741ec22e30..96378fc8cb324c8ea2f0b5ffd414d81114ec0f9c 100644 (file)
--- 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 {