diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-07-06 17:56:48 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-07-06 17:56:48 +0300 |
commit | 001ecd3198a19aa52513c78468ffbd6e767e1ac1 (patch) | |
tree | e51ce78b2b6e0373a59d12cdd436236930d9d9bd /sapi/phpdbg/phpdbg_print.c | |
parent | 436b01e3797860add57a524b4492f8451b60ac68 (diff) | |
download | php-git-001ecd3198a19aa52513c78468ffbd6e767e1ac1.tar.gz |
Simplify TMP var number decoding (without HashTable)
Diffstat (limited to 'sapi/phpdbg/phpdbg_print.c')
-rw-r--r-- | sapi/phpdbg/phpdbg_print.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sapi/phpdbg/phpdbg_print.c b/sapi/phpdbg/phpdbg_print.c index 70b8c2f807..95e0caf784 100644 --- a/sapi/phpdbg/phpdbg_print.c +++ b/sapi/phpdbg/phpdbg_print.c @@ -55,7 +55,6 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ switch (method->type) { case ZEND_USER_FUNCTION: { zend_op_array* op_array = &(method->op_array); - HashTable vars; if (op_array) { zend_op *opline = &(op_array->opcodes[0]); @@ -81,9 +80,8 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ op_array->last); } - zend_hash_init(&vars, op_array->last, NULL, NULL, 0); do { - char *decode = phpdbg_decode_opline(op_array, opline, &vars); + char *decode = phpdbg_decode_opline(op_array, opline); if (decode != NULL) { phpdbg_writeln("print", "line=\"%u\" opnum=\"%u\" opcode=\"%s\" op=\"%s\"", " L%-4u #%-5u %-23s %s", opline->lineno, @@ -96,7 +94,6 @@ static inline void phpdbg_print_function_helper(zend_function *method) /* {{{ */ } opline++; } while (opcode++ < end); - zend_hash_destroy(&vars); } } break; |