ID: 31192 Updated by: [EMAIL PROTECTED] Reported By: markus at fischer dot name -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.0.3 -Assigned To: +Assigned To: helly New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. You have to use limit=0 for default. Setting it to -1 still won't work. Previous Comments: ------------------------------------------------------------------------ [2004-12-20 08:15:24] markus at fischer dot name Description: ------------ The default bahavior auf fgetcsv() is, if no parameter but the first is given, that it automatically adjusts the buffer size when reading the stream. Internally this is done by setting length to -1. However, when you start to provide a custom delimiter or enclosure, you also have to specify the length. It is not possible to set length to -1 (the C code prevents this), therefore the feature that the buffer adjusts its size automatically cannot be used. This is pretty much the same http://php.net/preg_split handles limit and flags parameter. If you want to specify "flags" but no "limit", you set limit to -1. This should be possible for fgetcsv() too. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31192&edit=1
