pollita Thu Apr 6 19:51:36 2006 UTC Modified files: /php-src/ext/standard/tests/file 004.phpt bug27508.phpt bug27619.phpt bug35781.phpt Log: Silence false positives in test failures http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/004.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/file/004.phpt diff -u php-src/ext/standard/tests/file/004.phpt:1.1 php-src/ext/standard/tests/file/004.phpt:1.2 --- php-src/ext/standard/tests/file/004.phpt:1.1 Sat Jun 28 20:06:13 2003 +++ php-src/ext/standard/tests/file/004.phpt Thu Apr 6 19:51:36 2006 @@ -31,7 +31,7 @@ } 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'; http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/bug27508.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/file/bug27508.phpt diff -u php-src/ext/standard/tests/file/bug27508.phpt:1.1 php-src/ext/standard/tests/file/bug27508.phpt:1.2 --- php-src/ext/standard/tests/file/bug27508.phpt:1.1 Wed May 11 02:01:44 2005 +++ php-src/ext/standard/tests/file/bug27508.phpt Thu Apr 6 19:51:36 2006 @@ -46,9 +46,9 @@ $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); http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/bug27619.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/file/bug27619.phpt diff -u php-src/ext/standard/tests/file/bug27619.phpt:1.1 php-src/ext/standard/tests/file/bug27619.phpt:1.2 --- php-src/ext/standard/tests/file/bug27619.phpt:1.1 Wed Mar 31 23:48:59 2004 +++ php-src/ext/standard/tests/file/bug27619.phpt Thu Apr 6 19:51:36 2006 @@ -3,7 +3,7 @@ --FILE-- <?php $fp = tmpfile(); - fwrite($fp, "this is a lowercase string.\n"); + fwrite($fp, b"this is a lowercase string.\n"); rewind($fp); /* Echo out the first four bytes 'this' without applying filter http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/tests/file/bug35781.phpt?r1=1.2&r2=1.3&diff_format=u Index: php-src/ext/standard/tests/file/bug35781.phpt diff -u php-src/ext/standard/tests/file/bug35781.phpt:1.2 php-src/ext/standard/tests/file/bug35781.phpt:1.3 --- php-src/ext/standard/tests/file/bug35781.phpt:1.2 Fri Dec 23 15:05:42 2005 +++ php-src/ext/standard/tests/file/bug35781.phpt Thu Apr 6 19:51:36 2006 @@ -7,7 +7,7 @@ $fp = fopen($filename, "w"); stream_filter_append($fp, "string.rot13", -49); -fwrite($fp, "This is a test\n"); +fwrite($fp, b"This is a test\n"); rewind($fp); fpassthru($fp); fclose($fp);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php