Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use class methods as callbacks #2

Closed
GoogleCodeExporter opened this issue Feb 11, 2016 · 1 comment
Closed

Ability to use class methods as callbacks #2

GoogleCodeExporter opened this issue Feb 11, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Done.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant