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

index 2f144285f243f78d4a035828f12f1d6cf27e98d2..8e6ad3171df8bbaa2455015ffeff817eeb2463b8 100644 (file)
@@ -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;