From 61274a0570b3e725dc5b3c7a51e1498289712469 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 28 Jan 2010 00:37:20 +0000 Subject: - more EOL fixes, don't use expectf --- ext/standard/tests/file/fgetss_variation3-win32.phpt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/standard/tests/file/fgetss_variation3-win32.phpt') diff --git a/ext/standard/tests/file/fgetss_variation3-win32.phpt b/ext/standard/tests/file/fgetss_variation3-win32.phpt index ea8ee2f8c6..7539b36876 100644 --- a/ext/standard/tests/file/fgetss_variation3-win32.phpt +++ b/ext/standard/tests/file/fgetss_variation3-win32.phpt @@ -35,6 +35,10 @@ this text contains some html tags body
br
this is the line with \n character. EOT; +if(substr(PHP_OS, 0, 3) == "WIN") { + $string_with_tags = str_replace("\r",'', $string_with_tags); +} + $filename = dirname(__FILE__)."/fgetss_variation3.tmp"; /* try reading the file opened in different modes of reading */ @@ -76,7 +80,7 @@ for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) { echo "Done\n"; ?> ---EXPECTF-- +--EXPECT-- *** Testing fgetss() : usage variations *** -- Testing fgetss() with file opened using w+ mode -- -- cgit v1.2.1