wez Sat Nov 16 17:52:22 2002 EDT Modified files: (Branch: PHP_4_3) /php4/main php_open_temporary_file.c Log: Change "wb" -> "r+b" for win32. The difference is staggering - I've spent hours tracking this down. It should probably be made the same for all platforms. Index: php4/main/php_open_temporary_file.c diff -u php4/main/php_open_temporary_file.c:1.18 php4/main/php_open_temporary_file.c:1.18.2.1 --- php4/main/php_open_temporary_file.c:1.18 Mon Sep 9 08:01:21 2002 +++ php4/main/php_open_temporary_file.c Sat Nov 16 17:52:22 2002 @@ -130,7 +130,7 @@ #ifdef PHP_WIN32 if (GetTempFileName(path, pfx, 0, opened_path)) { - fp = VCWD_FOPEN(opened_path, "wb"); + fp = VCWD_FOPEN(opened_path, "r+b"); } else { fp = NULL; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php