diff options
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r-- | ext/standard/file.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 63d14053d9..e8e5448d39 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1437,9 +1437,7 @@ PHP_FUNCTION(readfile) rsrc_id = ZEND_REGISTER_RESOURCE(NULL,fp,php_file_le_fopen()); } - if (php_header()) { - size = php_passthru_fd(socketd, fp, issock); - } + size = php_passthru_fd(socketd, fp, issock); zend_list_delete(rsrc_id); @@ -1497,12 +1495,10 @@ PHP_FUNCTION(fpassthru) socketd=*(int*)what; } - size = 0; - if (php_header()) { /* force headers if not already sent */ - size = php_passthru_fd(socketd, (FILE*) what, issock); - } + size = php_passthru_fd(socketd, (FILE*) what, issock); zend_list_delete((*arg1)->value.lval); + RETURN_LONG(size); } /* }}} */ |