cvs: php-src /ext/standard/tests/file bug42229.phpt
| From: | Felipe Pena | Date: | Sun, 10 Feb 2008 03:55:40 +0000 |
| Subject: | cvs: php-src /ext/standard/tests/file bug42229.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48425@lists.php.net to get a copy of this message | ||
felipe Sun Feb 10 03:55:40 2008 UTC
Added files:
/php-src/ext/standard/tests/file bug42229.phpt
Log:
New test
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/bug42229.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/file/bug42229.phpt
+++ php-src/ext/standard/tests/file/bug42229.phpt
--TEST--
Bug #42229 (fgetcsv() behaves differently for a file containing '\n' with php5 and php6)
--FILE--
<?php
$file = dirname(__FILE__) .'/filetest.tmp';
$csv_string = '\n';
$fp = fopen($file, "w+t");
fwrite($fp, $csv_string);
rewind($fp);
var_dump(fgetcsv($fp));
fclose($fp);
unlink($file);
?>
--EXPECT--
array(1) {
[0]=>
string(2) "\n"
}
--UEXPECT--
array(1) {
[0]=>
unicode(2) "\n"
}