FredGarcia / rolling-curl

Automatically exported from code.google.com/p/rolling-curl
0 stars 0 forks source link

Ability to use class methods as callbacks #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's better to use call_user_func since it will give an ability to call 
class methods.

$callback = $this->callback;
if (is_callable($callback)){
   call_user_func($callback, $output, $info);
}

Original issue reported on code.google.com by alexander.makarow on 7 Feb 2010 at 3:42

GoogleCodeExporter commented 8 years ago
Done.

Original comment by alexander.makarow on 17 Feb 2010 at 11:49