mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
fix ftell/fseek calls
This commit is contained in:
parent
635a23128b
commit
b75a058810
@ -2405,8 +2405,8 @@ consult the installation file that came with this distribution, or visit \n\
|
||||
/* handle situations where line is terminated by \r\n */
|
||||
if (c == '\r') {
|
||||
if (fgetc(file_handle.handle.fp) != '\n') {
|
||||
long pos = ftell(file_handle.handle.fp);
|
||||
fseek(file_handle.handle.fp, pos - 1, SEEK_SET);
|
||||
zend_long pos = zend_ftell(file_handle.handle.fp);
|
||||
zend_fseek(file_handle.handle.fp, pos - 1, SEEK_SET);
|
||||
}
|
||||
}
|
||||
CG(start_lineno) = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user