Browse Source

reversing another patch that slipped

experimental/newoperator
Stig Bakken 28 years ago
parent
commit
8eec7a022f
  1. 4
      ext/standard/file.c

4
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 {

Loading…
Cancel
Save