magento 上的 __Call 错误
Error with __Call on magento
我想不通,
我的 class 上有一个方法,例如:
public function __call($closure, $args){
return call_user_func_array($this->{$closure}->bindTo($this),$args);
}
这适用于我在 magento 上的本地服务器,但是当我尝试在我的服务器上使用它时
它 returns 我出现以下错误:
Fatal error: Call to undefined method Closure::bindTo() in
我尝试将 var_dump 添加到变量中,所有变量都有正确的值。
有什么想法吗?
Closure::bindTo
仅存在于 PHP 5.4 或更高版本中。检查您的 PHP 版本。
我想不通,
我的 class 上有一个方法,例如:
public function __call($closure, $args){
return call_user_func_array($this->{$closure}->bindTo($this),$args);
}
这适用于我在 magento 上的本地服务器,但是当我尝试在我的服务器上使用它时 它 returns 我出现以下错误:
Fatal error: Call to undefined method Closure::bindTo() in
我尝试将 var_dump 添加到变量中,所有变量都有正确的值。
有什么想法吗?
Closure::bindTo
仅存在于 PHP 5.4 或更高版本中。检查您的 PHP 版本。