From: SVN Migration Date: Thu, 5 Dec 2002 20:01:20 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.0RC3~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dcfe521fce755c16337fc2f45113818582c41ee6;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/standard/tests/file/bug12556.phpt b/ext/standard/tests/file/bug12556.phpt new file mode 100644 index 0000000000..cac77e5f2b --- /dev/null +++ b/ext/standard/tests/file/bug12556.phpt @@ -0,0 +1,49 @@ +--TEST-- +Bug #12556: fgetcvs ignores lengths when quotes not closed +--POST-- +--GET-- +--FILE-- + +--EXPECT-- +array(4) { + [0]=> + string(1) "6" + [1]=> + string(1) "7" + [2]=> + string(1) "8" + [3]=> + string(5) "line1" +} +array(4) { + [0]=> + string(1) "1" + [1]=> + string(1) "2" + [2]=> + string(1) "3" + [3]=> + string(186) "line2 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +" +} diff --git a/ext/standard/tests/file/test.csv b/ext/standard/tests/file/test.csv new file mode 100644 index 0000000000..d99984c2ab --- /dev/null +++ b/ext/standard/tests/file/test.csv @@ -0,0 +1,17 @@ +6,7,8,line1 +1,2,3,"line2 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3 +2,4,5,line3