From: Marcus Boerger Date: Sun, 11 Dec 2005 02:40:49 +0000 (+0000) Subject: - Add method support to --rfunction X-Git-Tag: RELEASE_1_0_4~425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f2a00690b6d832c851dc9eb4b30a315730a6db7;p=php - Add method support to --rfunction --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 2b3254cc40..5a0f803335 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1188,7 +1188,11 @@ int main(int argc, char *argv[]) switch (behavior) { case PHP_MODE_REFLECTION_FUNCTION: - pce = reflection_function_ptr; + if (strstr(reflection_what, "::")) { + pce = reflection_method_ptr; + } else { + pce = reflection_function_ptr; + } break; case PHP_MODE_REFLECTION_CLASS: pce = reflection_class_ptr;