summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_alloc.c')
-rw-r--r--Zend/zend_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c
index 35a201b21c..bb3e66c989 100644
--- a/Zend/zend_alloc.c
+++ b/Zend/zend_alloc.c
@@ -1769,7 +1769,7 @@ static void zend_mm_safe_error(zend_mm_heap *heap,
}
if (ex) {
error_filename = ex->func->op_array.filename->val;
- error_lineno = ex->opline ? ex->opline->lineno : 0;
+ error_lineno = ex->opline->lineno;
} else {
error_filename = NULL;
error_lineno = 0;