]> granicus.if.org Git - php/commitdiff
- Check for PHPDBG_DEBUG
authorFelipe Pena <felipensp@gmail.com>
Tue, 19 Nov 2013 21:53:27 +0000 (19:53 -0200)
committerFelipe Pena <felipensp@gmail.com>
Tue, 19 Nov 2013 21:53:27 +0000 (19:53 -0200)
phpdbg_cmd.c

index 5b3de53ccc3d140fd6cad946305a08f54411e085..fca4af34a373423e100cbc51504d55b404443513 100644 (file)
@@ -326,10 +326,10 @@ int phpdbg_do_cmd_ex(const phpdbg_command_t *command, phpdbg_input_t *input TSRM
 
                                        return phpdbg_do_cmd_ex(command->subs, &sub TSRMLS_CC);
                                }
-
                                phpdbg_debug(
                                        "found command %s for %s with %d arguments",
                                        command->name, input->argv[0]->string, input->argc-1);
+#ifdef PHPDBG_DEBUG
                                {
                                        int arg;
                                        for (arg=1; arg<input->argc; arg++) {
@@ -340,6 +340,7 @@ int phpdbg_do_cmd_ex(const phpdbg_command_t *command, phpdbg_input_t *input TSRM
                                                        input->argv[arg]->length);
                                        }
                                }
+#endif
                                break;
                        }
                        command++;