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"
}

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to