diff options
| author | Pierre Joye <pajoye@php.net> | 2010-01-28 00:37:20 +0000 |
|---|---|---|
| committer | Pierre Joye <pajoye@php.net> | 2010-01-28 00:37:20 +0000 |
| commit | 61274a0570b3e725dc5b3c7a51e1498289712469 (patch) | |
| tree | 4cf072f3e66caabb6039c1d2e154dab7f9c7f8d4 /ext/standard/tests/file/fgetss_variation3-win32.phpt | |
| parent | 81ac81c494673b79cd4c31c944ab9e2081b80c16 (diff) | |
| download | php-git-61274a0570b3e725dc5b3c7a51e1498289712469.tar.gz | |
- more EOL fixes, don't use expectf
Diffstat (limited to 'ext/standard/tests/file/fgetss_variation3-win32.phpt')
| -rw-r--r-- | ext/standard/tests/file/fgetss_variation3-win32.phpt | 6 |
1 files changed, 5 insertions, 1 deletions
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> body </body> <br> br </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 -- |
