com php-src: Add line numbers to Optimizer debug output: ext/opcache/Optimizer/zend_dump.c
| From: | Rasmus Lerdorf | Date: | Fri, 06 Oct 2017 20:18:58 +0000 |
| Subject: | com php-src: Add line numbers to Optimizer debug output: ext/opcache/Optimizer/zend_dump.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99647@lists.php.net to get a copy of this message | ||
Commit: ec3ea3081d46e59259f9bdedeb1b4de9498972ca
Author: Rasmus Lerdorf <rasmus@php.net> Fri, 6 Oct 2017 17:18:12 -0300
Parents: d0146c25062f6eaa7687cd74756dba6558ec941a
Branches: PHP-7.2
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ec3ea3081d46e59259f9bdedeb1b4de9498972ca
Log:
Add line numbers to Optimizer debug output
Changed paths:
M ext/opcache/Optimizer/zend_dump.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c
index 635b503..924f7bb 100644
--- a/ext/opcache/Optimizer/zend_dump.c
+++ b/ext/opcache/Optimizer/zend_dump.c
@@ -393,9 +393,9 @@ static void zend_dump_op(const zend_op_array *op_array, const zend_basic_block *
}
if (!b) {
- len = fprintf(stderr, "L%u:", (uint32_t)(opline - op_array->opcodes));
+ len = fprintf(stderr, "L%u (%u):", (uint32_t)(opline - op_array->opcodes),
opline->lineno);
}
- fprintf(stderr, "%*c", 8-len, ' ');
+ fprintf(stderr, "%*c", 12-len, ' ');
if (!ssa || !ssa->ops || ssa->ops[opline - op_array->opcodes].result_use < 0) {
if (opline->result_type & (IS_CV|IS_VAR|IS_TMP_VAR)) {