summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2017-10-06 17:18:12 -0300
committerRasmus Lerdorf <rasmus@php.net>2017-10-06 17:18:58 -0300
commitec3ea3081d46e59259f9bdedeb1b4de9498972ca (patch)
tree847ae0902f6b7db34449317adb5df8f0d7f2adb6 /ext/opcache
parentd0146c25062f6eaa7687cd74756dba6558ec941a (diff)
downloadphp-git-ec3ea3081d46e59259f9bdedeb1b4de9498972ca.tar.gz
Add line numbers to Optimizer debug output
Diffstat (limited to 'ext/opcache')
-rw-r--r--ext/opcache/Optimizer/zend_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/zend_dump.c b/ext/opcache/Optimizer/zend_dump.c
index 635b503781..924f7bb6a8 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)) {