Is it ok to call non static methods with call_user_func in PHP 5.3?

Posted by sandelius on Stack Overflow See other posts from Stack Overflow or by sandelius
Published on 2010-04-14T19:29:16Z Indexed on 2010/04/14 19:33 UTC
Read the original article Hit count: 188

Filed under:

Hi folks!

When I use call_user_func on a non-static method in PHP 5.2 I get a Strict Warning:

Strict Standards: Non-static method User::register() cannot be called statically

But on PHP 5.3.1 I don't get this warning. Is this a bug in PHP 5.3.1 or is the warning removed?

© Stack Overflow or respective owner

Related posts about php