From 8eec7a022f371952a212e250e12903396671d3fa Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Tue, 15 Jun 1999 21:56:11 +0000 Subject: [PATCH] reversing another patch that slipped --- ext/standard/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 92abdaeba2..eef2696b92 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -720,7 +720,7 @@ PHP_FUNCTION(feof) /* we're at the eof if the file doesn't exist */ RETURN_TRUE; } - if ((issock?(SOCK_FEOF(socketd)):feof(fp))) { + if ((issock?(_php3_sock_eof(socketd)):feof(fp))) { RETURN_TRUE; } else { RETURN_FALSE; @@ -896,7 +896,7 @@ PHP_FUNCTION(fgetc) { RETURN_FALSE; } buf = emalloc(sizeof(char) * 2); - if (!(issock?(*buf=SOCK_FGETC(socketd)):(*buf=fgetc(fp)))) { + if (!(issock?(SOCK_FGETC(buf,socketd)):(*buf=fgetc(fp)))) { efree(buf); RETVAL_FALSE; } else { -- 2.40.0