diff options
author | Marcus Boerger <helly@php.net> | 2005-12-11 02:41:04 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-12-11 02:41:04 +0000 |
commit | c19fa0bbdedda3318c5ca2b339c2a17404e3770f (patch) | |
tree | 64123a8d6256d9cc2ff84e4f4e84dd311ed0313d /sapi/cli/php_cli.c | |
parent | ba6c82eee9e00fee03e3c611f0802149f5dd5e56 (diff) | |
download | php-git-c19fa0bbdedda3318c5ca2b339c2a17404e3770f.tar.gz |
- MFH Add method support to --rfunction
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r-- | sapi/cli/php_cli.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |