From: SVN Migration Date: Mon, 24 Feb 2003 03:13:26 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.2RC1~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=240b4d18e3977c458dffb57eee0f182f1a9cf21d;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/file/bug22382.phpt b/ext/standard/tests/file/bug22382.phpt new file mode 100644 index 0000000000..5255eaf350 --- /dev/null +++ b/ext/standard/tests/file/bug22382.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #22382: fgetcvs does not handle escaped quotes correctly +--POST-- +--GET-- +--FILE-- + +--EXPECT-- +array(6) { + [0]=> + string(3) "One" + [1]=> + string(7) "\"Two\"" + [2]=> + string(7) "Three\"" + [3]=> + string(4) "Four" + [4]=> + string(2) "\\" + [5]=> + string(28) "\\\\\\\\\\\\\\\\\\\\\\\"\\\\" +} \ No newline at end of file diff --git a/ext/standard/tests/file/test2.csv b/ext/standard/tests/file/test2.csv new file mode 100644 index 0000000000..d816464170 --- /dev/null +++ b/ext/standard/tests/file/test2.csv @@ -0,0 +1 @@ +"One","\"Two\"","Three\"","Four","\\","\\\\\\\\\\\\\\\\\\\\\\\"\\\\"