From 240b4d18e3977c458dffb57eee0f182f1a9cf21d Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 24 Feb 2003 03:13:26 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- ext/standard/tests/file/bug22382.phpt | 27 +++++++++++++++++++++++++++ ext/standard/tests/file/test2.csv | 1 + 2 files changed, 28 insertions(+) create mode 100644 ext/standard/tests/file/bug22382.phpt create mode 100644 ext/standard/tests/file/test2.csv 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","\\","\\\\\\\\\\\\\\\\\\\\\\\"\\\\" -- 2.50.1