From: Marcus Boerger Date: Sun, 11 Dec 2005 02:41:04 +0000 (+0000) Subject: - MFH Add method support to --rfunction X-Git-Tag: php-5.1.2RC1~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c19fa0bbdedda3318c5ca2b339c2a17404e3770f;p=php - MFH Add method support to --rfunction --- diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 2f144285f2..8e6ad3171d 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -1179,7 +1179,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;