wez Sat Jul 5 04:25:25 2003 EDT Modified files: /php-src/main/streams plain_wrapper.c Log: MFB: binary mode by default under win32. Index: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.19 php-src/main/streams/plain_wrapper.c:1.20 --- php-src/main/streams/plain_wrapper.c:1.19 Sat Jun 28 07:24:47 2003 +++ php-src/main/streams/plain_wrapper.c Sat Jul 5 04:25:25 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.19 2003/06/28 11:24:47 wez Exp $ */ +/* $Id: plain_wrapper.c,v 1.20 2003/07/05 08:25:25 wez Exp $ */ #include "php.h" #include "php_globals.h" @@ -69,16 +69,14 @@ flags |= O_RDONLY; } -#ifdef O_BINARY - if (strchr(mode, 'b')) { - flags |= O_BINARY; - } -#endif -#ifdef _O_TEXT +#if defined(_O_TEXT) && defined(O_BINARY) if (strchr(mode, 't')) { flags |= _O_TEXT; + } else { + flags |= O_BINARY; } #endif + *open_flags = flags; return SUCCESS; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php