summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-14 22:28:42 +0200
committerAnatol Belski <ab@php.net>2014-09-14 22:28:42 +0200
commitb75a05881040e252e524898b0931542c40d68b8e (patch)
treebfb8304816c620837210525df9d68f042c1223ee /sapi/cgi/cgi_main.c
parent635a23128b018b7cafcf17bdc7131585b9606352 (diff)
downloadphp-git-b75a05881040e252e524898b0931542c40d68b8e.tar.gz
fix ftell/fseek calls
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index d73c4a3e71..5c81c14cc1 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -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;