diff options
author | Wez Furlong <wez@php.net> | 2003-05-21 13:33:55 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-05-21 13:33:55 +0000 |
commit | 2d1a6e5dc23ace4583ee2e6f8b55c1ef21f06803 (patch) | |
tree | 3fa144f26bfba2b16d9df6dc84fb782676db705e /main/streams/plain_wrapper.c | |
parent | 654f141e1cb17914652a03355b7899f89712756c (diff) | |
download | php-git-2d1a6e5dc23ace4583ee2e6f8b55c1ef21f06803.tar.gz |
MFB context refcounting and text-mode fopen fixes
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 075cc70e45..31de27ea70 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -74,7 +74,11 @@ PHPAPI int php_stream_parse_fopen_modes(const char *mode, int *open_flags) flags |= O_BINARY; } #endif - +#ifdef _O_TEXT + if (strchr(mode, 't')) { + flags |= _O_TEXT; + } +#endif *open_flags = flags; return SUCCESS; } |