From 37d5a2b18febc07088b15f06c6e5cc73eca782a0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 20 Oct 2014 15:53:32 +0200 Subject: [PATCH] initialize lineno before calling compile file file in phar --- ext/phar/phar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index a5488937a8..cc0fad28eb 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -3380,6 +3380,7 @@ static zend_op_array *phar_compile_file(zend_file_handle *file_handle, int type zend_try { failed = 0; + CG(zend_lineno) = 0; res = phar_orig_compile_file(file_handle, type TSRMLS_CC); } zend_catch { failed = 1; -- 2.40.0