]> granicus.if.org Git - php/commitdiff
fix stepping
authorkrakjoe <joe.watkins@live.co.uk>
Thu, 14 Nov 2013 16:14:20 +0000 (16:14 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Thu, 14 Nov 2013 16:14:20 +0000 (16:14 +0000)
phpdbg_prompt.c

index f133c24ec083701ba6a477b11e4295c01c62ec3a..c490377f7efc25e0e8c2f87abdba8634b5350cdb 100644 (file)
@@ -595,6 +595,12 @@ int phpdbg_interactive(TSRMLS_D) /* {{{ */
                            if (!EG(in_execution)) {
                                                phpdbg_error("Not running");
                            }
+                           
+#ifdef HAVE_LIBREADLINE
+                    if (cmd) {
+                        free(cmd);
+                    }
+#endif
                            return PHPDBG_NEXT;
                        }
                    }
@@ -720,16 +726,16 @@ zend_vm_enter:
                 DO_INTERACTIVE();
             }
         }
-
-next:
-        PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
-
+        
         if (!(PHPDBG_G(flags) & PHPDBG_IN_COND_BP)) {
             if ((PHPDBG_G(flags) & PHPDBG_IS_STEPPING)) {
                 DO_INTERACTIVE();
             }
         }
 
+next:
+        PHPDBG_G(vmret) = execute_data->opline->handler(execute_data TSRMLS_CC);
+
         if (PHPDBG_G(vmret) > 0) {
             switch (PHPDBG_G(vmret)) {
                 case 1: