Skip to content

Commit

Permalink
MFZE1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Nov 5, 2002
1 parent 6f9bfe5 commit 78bf1d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Zend/zend_language_scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,13 @@ ZEND_API int open_file_for_scanning(zend_file_handle *file_handle TSRMLS_DC)
}

zend_set_compiled_filename(file_path TSRMLS_CC);
CG(zend_lineno) = 1;

if (CG(zend_lineno) < 0) { /* position is (n_lines * -1), position was changed by an external app */
CG(zend_lineno) = CG(zend_lineno) * -1;
} else {
CG(zend_lineno) = 1;
}

CG(increment_lineno) = 0;
return SUCCESS;
}
Expand Down

0 comments on commit 78bf1d9

Please sign in to comment.