From: Arnaud Le Blanc Date: Fri, 8 May 2009 09:50:34 +0000 (+0000) Subject: test for #44034 X-Git-Tag: php-5.3.0RC3~318 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d61fa216d30414da6d2908cabf413db7cbb2440;p=php test for #44034 --- diff --git a/ext/standard/tests/file/bug44034.phpt b/ext/standard/tests/file/bug44034.phpt new file mode 100644 index 0000000000..c8f3179030 --- /dev/null +++ b/ext/standard/tests/file/bug44034.phpt @@ -0,0 +1,39 @@ +--TEST-- +Bug #44034 +--FILE-- + "\\r", "\n" => "\\n")) . "\n"; + var_dump(file($url, FILE_IGNORE_NEW_LINES)); +} +?> +--EXPECTF-- +data://text/plain,foo\r\nbar\r\n +array(2) { + [0]=> + %unicode|string%(3) "foo" + [1]=> + %unicode|string%(3) "bar" +} +data://text/plain,\r\nfoo\r\nbar\r\n +array(3) { + [0]=> + %unicode|string%(0) "" + [1]=> + %unicode|string%(3) "foo" + [2]=> + %unicode|string%(3) "bar" +} +data://text/plain,foo\r\nbar +array(2) { + [0]=> + %unicode|string%(3) "foo" + [1]=> + %unicode|string%(3) "bar" +}