com php-src: fix ftell/fseek calls: sapi/cgi/cgi_main.c

From: Date: Sun, 14 Sep 2014 20:28:42 +0000
Subject: com php-src: fix ftell/fseek calls: sapi/cgi/cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-81605@lists.php.net to get a copy of this message
Commit: b75a05881040e252e524898b0931542c40d68b8e Author: Anatol Belski <ab@php.net> Sun, 14 Sep 2014 22:28:42 +0200 Parents: 635a23128b018b7cafcf17bdc7131585b9606352 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b75a05881040e252e524898b0931542c40d68b8e Log: fix ftell/fseek calls Changed paths: M sapi/cgi/cgi_main.c Diff: diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index d73c4a3..5c81c14 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;

« previous php.cvs (#81605) next »