php - Error with __Call on magento -


i can't figure out,

i have method on class like:

public function __call($closure, $args){      return call_user_func_array($this->{$closure}->bindto($this),$args); } 

this works on local server on magento, when try use on server returns me following error:

fatal error: call undefined method closure::bindto() in

i tried adding var_dump variables, have correct values.

any ideas?

closure::bindto exists in php 5.4 or newer only. check php version.

http://php.net/manual/en/closure.bindto.php


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -