]> granicus.if.org Git - php/commitdiff
- Moved conditional bp checking
authorFelipe Pena <felipensp@gmail.com>
Sun, 24 Nov 2013 11:45:05 +0000 (09:45 -0200)
committerFelipe Pena <felipensp@gmail.com>
Sun, 24 Nov 2013 11:45:05 +0000 (09:45 -0200)
phpdbg_bp.c
phpdbg_prompt.c

index 1a0452deac281ff8e65217769abe377cd599aeb7..849b8def0d56ecb61012ac242af8adba9b750a15 100644 (file)
@@ -449,6 +449,13 @@ int phpdbg_find_conditional_breakpoint(TSRMLS_D) /* {{{ */
 
 int phpdbg_find_breakpoint(zend_execute_data* execute_data TSRMLS_DC) /* {{{ */
 {
+       /* conditions cannot be executed by eval()'d code */
+       if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)
+               && (PHPDBG_G(flags) & PHPDBG_HAS_COND_BP)
+               && phpdbg_find_conditional_breakpoint(TSRMLS_C) == SUCCESS) {
+               return SUCCESS;
+       }
+
        if (PHPDBG_G(flags) & PHPDBG_HAS_FILE_BP
                && phpdbg_find_breakpoint_file(execute_data->op_array TSRMLS_CC) == SUCCESS) {
                return SUCCESS;
index 1eaaef7856f9f2c6233a3751cc7f4fb1dc4beeee..5c276ab8f8f8712626f7c52987e012cddc15230c 100644 (file)
@@ -1369,13 +1369,6 @@ zend_vm_enter:
                phpdbg_print_opline_ex(
                        execute_data, &vars, 0 TSRMLS_CC);
 
-               /* conditions cannot be executed by eval()'d code */
-               if (!(PHPDBG_G(flags) & PHPDBG_IN_EVAL)
-                       && (PHPDBG_G(flags) & PHPDBG_HAS_COND_BP)
-                       && phpdbg_find_conditional_breakpoint(TSRMLS_C) == SUCCESS) {
-                       DO_INTERACTIVE();
-               }
-
                if (PHPDBG_G(flags) & PHPDBG_BP_MASK
                        && phpdbg_find_breakpoint(execute_data TSRMLS_CC) == SUCCESS) {
                        DO_INTERACTIVE();