]> granicus.if.org Git - php/commitdiff
- Add method support to --rfunction
authorMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 02:40:49 +0000 (02:40 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 11 Dec 2005 02:40:49 +0000 (02:40 +0000)
sapi/cli/php_cli.c

index 2b3254cc40b2f22c5e60aff21fd826ec8c5d8576..5a0f803335cb4269c7e978d05bac1230fcd6290c 100644 (file)
@@ -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;