summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-06-25 17:02:59 +0000
committerZeev Suraski <zeev@php.net>2000-06-25 17:02:59 +0000
commit6614e8edb43e8f38394bf25cf26399fab1cbf6b2 (patch)
tree522028c934a1656eaab4d07103a93e01e63cf734 /main/main.c
parentba69d9958d23a12e3b962a81ab773d4bb1cc6813 (diff)
downloadphp-git-6614e8edb43e8f38394bf25cf26399fab1cbf6b2.tar.gz
- I wrote a long msg but the commit didn't go through.
- So here is the short version: - a) Start moving to binary opens in Windows - b) Give checkuid_mode() a small face lift including the fopen-wrappers.c - The mode to this function should at least be a #define but that is for - another day. Anyway this whole stuff should be given more face lifts in - the future.
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.c b/main/main.c
index 82abc0c351..99f89c5f6f 100644
--- a/main/main.c
+++ b/main/main.c
@@ -493,11 +493,11 @@ static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path
FILE *retval;
old_chunk_size = php_sock_set_def_chunk_size(1);
- retval=php_fopen_wrapper((char *) filename, "r", USE_PATH|IGNORE_URL_WIN, &issock, &socketd, opened_path);
+ retval=php_fopen_wrapper((char *) filename, "rb", USE_PATH|IGNORE_URL_WIN, &issock, &socketd, opened_path);
php_sock_set_def_chunk_size(old_chunk_size);
if (issock) {
- retval = fdopen(socketd, "r");
+ retval = fdopen(socketd, "rb");
}
return retval;
}