1
0
mirror of synced 2025-01-31 04:21:44 +03:00

Fixed #991 to support non-closure callables on PHP 5.3

This commit is contained in:
Matthieu Napoli 2014-05-16 10:49:59 +02:00
parent b16423b26b
commit 5a4c558865

View File

@ -3411,7 +3411,7 @@ class Parser
$function = is_string($functionClass)
? new $functionClass($functionName)
: $functionClass($functionName);
: call_user_func($functionClass, $functionName);
$function->parse($this);
@ -3450,7 +3450,7 @@ class Parser
$function = is_string($functionClass)
? new $functionClass($functionName)
: $functionClass($functionName);
: call_user_func($functionClass, $functionName);
$function->parse($this);
@ -3490,7 +3490,7 @@ class Parser
$function = is_string($functionClass)
? new $functionClass($functionName)
: $functionClass($functionName);
: call_user_func($functionClass, $functionName);
$function->parse($this);