diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-05 22:01:35 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-05 22:01:35 +0000 |
commit | 78bf1d9a565352631a6fed97761ec6962cf4ea82 (patch) | |
tree | 6edfc54b8292dfa77244672e231a10534d481bcb /Zend | |
parent | 6f9bfe5cca75f4e13f8f8754f67a5074596b9e26 (diff) | |
download | php-git-78bf1d9a565352631a6fed97761ec6962cf4ea82.tar.gz |
MFZE1
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_language_scanner.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Zend/zend_language_scanner.l b/Zend/zend_language_scanner.l index 62390f1785..6dc7867c8b 100644 --- a/Zend/zend_language_scanner.l +++ b/Zend/zend_language_scanner.l @@ -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; } |