]> granicus.if.org Git - php/commitdiff
initialize lineno before calling compile file file in phar
authorAnatol Belski <ab@php.net>
Mon, 20 Oct 2014 13:53:32 +0000 (15:53 +0200)
committerAnatol Belski <ab@php.net>
Mon, 20 Oct 2014 13:53:32 +0000 (15:53 +0200)
ext/phar/phar.c

index a5488937a80433d434af6753d3db8517feaf91df..cc0fad28eb9ea42466f756c3b5fc22c764e32690 100644 (file)
@@ -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;