cvs: php4 /ext/standard/tests/file bug12556.phpt
| From: | Melvyn Sopacua | Date: | Thu, 05 Dec 2002 19:29:45 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/file bug12556.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16933@lists.php.net to get a copy of this message | ||
msopacua Thu Dec 5 14:29:45 2002 EDT
Added files:
/php4/ext/standard/tests/file bug12556.phpt
Log:
Add a testcase for this bug
Index: php4/ext/standard/tests/file/bug12556.phpt
+++ php4/ext/standard/tests/file/bug12556.phpt
--TEST--
Bug #12556: fgetcvs ignores lengths when quotes not closed
--POST--
--GET--
--FILE--
<?php
$fp=fopen(dirname(__FILE__)."/test.csv", "r");
while($line=fgetcsv($fp, 24)){
print("Read 24 bytes\n");
}
?>
--EXPECT--
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes
Read 24 bytes