From: Sara Golemon Date: Thu, 6 Apr 2006 19:51:36 +0000 (+0000) Subject: Silence false positives in test failures X-Git-Tag: RELEASE_1_3~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78d1f7ea40447dad74962fa3958c585fc62797af;p=php Silence false positives in test failures --- diff --git a/ext/standard/tests/file/004.phpt b/ext/standard/tests/file/004.phpt index f1fab47ac3..ed3f8d7fbe 100644 --- a/ext/standard/tests/file/004.phpt +++ b/ext/standard/tests/file/004.phpt @@ -31,7 +31,7 @@ file_put_contents() test } echo "\n"; - $ret = file_put_contents("TEST4", __FILE__); + $ret = file_put_contents("TEST4", (binary)__FILE__); echo "Bool Test: "; if ($ret !== FALSE && md5(__FILE__) == md5_file("TEST4")) { echo 'OK'; diff --git a/ext/standard/tests/file/bug27508.phpt b/ext/standard/tests/file/bug27508.phpt index 5374a0dcbc..95a3122184 100644 --- a/ext/standard/tests/file/bug27508.phpt +++ b/ext/standard/tests/file/bug27508.phpt @@ -46,9 +46,9 @@ $tn = tempnam('/tmp', 'foo'); $fp = fopen("myFile://" . urlencode($tn), "w+"); -fwrite($fp, "line1\n"); -fwrite($fp, "line2\n"); -fwrite($fp, "line3\n"); +fwrite($fp, b"line1\n"); +fwrite($fp, b"line2\n"); +fwrite($fp, b"line3\n"); debug_zval_dump(feof($fp)); rewind($fp); diff --git a/ext/standard/tests/file/bug27619.phpt b/ext/standard/tests/file/bug27619.phpt index 095a18c199..1acb9fc69c 100644 --- a/ext/standard/tests/file/bug27619.phpt +++ b/ext/standard/tests/file/bug27619.phpt @@ -3,7 +3,7 @@ Bug #27619 (filters not applied to pre-buffered data) --FILE--