com php-src: Always only halt upon first non-recv opcode in a function: sapi/phpdbg/phpdbg_bp.c

From: Date: Mon, 20 Jul 2015 16:00:42 +0000
Subject: com php-src: Always only halt upon first non-recv opcode in a function: sapi/phpdbg/phpdbg_bp.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88056@lists.php.net to get a copy of this message
Commit: 50e76d951eeb32be4c6d6cb0e24f9d4f6733f0fb Author: Bob Weinand <bobwei9@hotmail.com> Sun, 19 Jul 2015 20:32:46 +0200 Parents: 1f9bba68a9d9fadbecf740404fe293f494b66516 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=50e76d951eeb32be4c6d6cb0e24f9d4f6733f0fb Log: Always only halt upon first non-recv opcode in a function Changed paths: M sapi/phpdbg/phpdbg_bp.c Diff: diff --git a/sapi/phpdbg/phpdbg_bp.c b/sapi/phpdbg/phpdbg_bp.c index 06c1e40..99f2d09 100644 --- a/sapi/phpdbg/phpdbg_bp.c +++ b/sapi/phpdbg/phpdbg_bp.c @@ -1080,8 +1080,9 @@ PHPDBG_API phpdbg_breakbase_t *phpdbg_find_breakpoint(zend_execute_data *execute } if (PHPDBG_G(flags) & (PHPDBG_HAS_METHOD_BP|PHPDBG_HAS_SYM_BP)) { - /* check we are at the beginning of the stack */ - if (execute_data->opline == execute_data->func->op_array.opcodes) { + zend_op_array *op_array = &execute_data->func->op_array; + /* check we are at the beginning of the stack, but after argument RECV */ + if (execute_data->opline == op_array->opcodes + op_array->num_args + !!(op_array->fn_flags & ZEND_ACC_VARIADIC)) { if ((base = phpdbg_find_breakpoint_symbol(execute_data->func))) { goto result; }

« previous php.cvs (#88056) next »