From: Rasmus Lerdorf Date: Sun, 26 Jul 2009 03:46:22 +0000 (+0000) Subject: Down to a single curl test failure now X-Git-Tag: php-5.4.0alpha1~191^2~2964 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=578c47faa4ad907f3aed5cc6ae9a72eec7b02ace;p=php Down to a single curl test failure now --- diff --git a/ext/curl/tests/curl_write_callback.phpt b/ext/curl/tests/curl_write_callback.phpt index c0b733ee44..57d57b6fb4 100644 --- a/ext/curl/tests/curl_write_callback.phpt +++ b/ext/curl/tests/curl_write_callback.phpt @@ -19,7 +19,7 @@ function curl_callback($curl_handle, $received_data) $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); $fp = fopen($log_file, 'w+'); -fwrite($fp, "test"); +fwrite($fp, b"test"); fclose($fp); $ch = curl_init(); diff --git a/ext/curl/tests/curl_write_file.phpt b/ext/curl/tests/curl_write_file.phpt index 95d2b0ea47..85738ab667 100644 --- a/ext/curl/tests/curl_write_file.phpt +++ b/ext/curl/tests/curl_write_file.phpt @@ -14,7 +14,7 @@ $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); $fp = fopen($log_file, 'w+'); -fwrite($fp, "test"); +fwrite($fp, b"test"); fclose($fp); $testfile_fp = fopen($test_file, 'w+'); diff --git a/ext/curl/tests/curl_write_return.phpt b/ext/curl/tests/curl_write_return.phpt index 1ddc551577..06ed2ef146 100644 --- a/ext/curl/tests/curl_write_return.phpt +++ b/ext/curl/tests/curl_write_return.phpt @@ -14,7 +14,7 @@ of curl_write(). $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); $fp = fopen($log_file, 'w+'); -fwrite($fp, "test"); +fwrite($fp, b"test"); fclose($fp); $ch = curl_init(); diff --git a/ext/curl/tests/curl_write_stdout.phpt b/ext/curl/tests/curl_write_stdout.phpt index 893b27e7df..27fd66c633 100644 --- a/ext/curl/tests/curl_write_stdout.phpt +++ b/ext/curl/tests/curl_write_stdout.phpt @@ -13,7 +13,7 @@ Writes the value 'test' to a temporary file. Use curl to access this file and st $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); $fp = fopen($log_file, 'w+'); -fwrite($fp, "test"); +fwrite($fp, b"test"); fclose($fp); $ch = curl_init();