From: Sascha Schumann Date: Sun, 16 May 1999 11:10:41 +0000 (+0000) Subject: kill some compiler warnings X-Git-Tag: BEFORE_PHP4_APACHE_MODULE_CHANGE~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d886b84ef4c6ca83ca73954c8f68bec049c5c672;p=php kill some compiler warnings --- diff --git a/ext/standard/file.c b/ext/standard/file.c index af15917d17..ac951fa407 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -319,7 +319,7 @@ void php3_get_meta_tags(INTERNAL_FUNCTION_PARAMETERS) } /* Now loop through the file and do the magic quotes thing if needed */ memset(buf,0,8191); - while((issock?SOCK_FGETS(buf,8191,socketd):(int)fgets(buf,8191,fp)) + while((issock?SOCK_FGETS(buf,8191,socketd):fgets(buf,8191,fp) != NULL) && !php3i_stristr(buf,"")) { if(php3i_stristr(buf,"