Added the graceful error message for php_method.
Fixed the php_method bug