summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2013-01-15 17:37:21 +0800
committerAdam Harvey <aharvey@php.net>2013-01-15 17:37:21 +0800
commit83864b470b030a7d1bd0a1b46d3be75ce301304c (patch)
treeec4a40824676eed1349c87b874652ef38fb1c1e7
parentb1bf524140f3825d161c6e8f922b696d91b93969 (diff)
downloadphp-git-83864b470b030a7d1bd0a1b46d3be75ce301304c.tar.gz
Revert "Apply the fputcsv test fix to SplFileObject_fputcsv.phpt. Mea culpa."
This reverts commit 0510701474e8d99b5b30139b5599e44f9b555a5a.
-rw-r--r--ext/spl/tests/SplFileObject_fputcsv.phpt10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/spl/tests/SplFileObject_fputcsv.phpt b/ext/spl/tests/SplFileObject_fputcsv.phpt
index 601edab47f..66fdbfd1b9 100644
--- a/ext/spl/tests/SplFileObject_fputcsv.phpt
+++ b/ext/spl/tests/SplFileObject_fputcsv.phpt
@@ -42,7 +42,7 @@ echo '$list = ';var_export($res);echo ";\n";
$fp = fopen($file, "r");
$res = array();
-while($l=fgetcsv($fp, 0, ',', '"', '"'))
+while($l=fgetcsv($fp))
{
$res[] = join(',',$l);
}
@@ -76,10 +76,10 @@ $list = array (
13 => 'aaa,"""bbb """',
14 => '"aaa""aaa""","""bbb""bbb"',
15 => '"aaa""aaa""""""",bbb',
- 16 => 'aaa,"""\\""bbb",ccc',
- 17 => '"aaa""\\""a""","""bbb"""',
- 18 => '"""\\""""","""aaa"""',
- 19 => '"""\\""""""",aaa',
+ 16 => 'aaa,"""\\"bbb",ccc',
+ 17 => '"aaa""\\"a""","""bbb"""',
+ 18 => '"""\\"""","""aaa"""',
+ 19 => '"""\\"""""",aaa',
);
$list = array (
0 => 'aaa,bbb',