#48313 [NEW]: fgetcsv doesn't report empty row as described

From: Date: Sun, 17 May 2009 20:16:07 +0000
Subject: #48313 [NEW]: fgetcsv doesn't report empty row as described
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137423@lists.php.net to get a copy of this message
From: bitworks at web dot de Operating system: Windows XP SP3 PHP version: 5.2.9 PHP Bug Type: *Directory/Filesystem functions Bug description: fgetcsv doesn't report empty row as described Description: ------------ reading data with fgetcsv() an empty row wil not be returned as one array element pointing to NULL, as it is described in documentation the result for the record will be array(1) { [0]=> string(0) "" } instead of array(1) { [0]=> NULL } Expected result: ---------------- array(1) { [0]=> NULL } Actual result: -------------- array(1) { [0]=> string(0) "" } -- Edit bug report at http://bugs.php.net/?id=48313&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48313&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48313&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48313&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48313&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48313&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48313&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48313&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48313&r=support Expected behavior: http://bugs.php.net/fix.php?id=48313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48313&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48313&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48313&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48313&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48313&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48313&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48313&r=mysqlcfg

« previous php.bugs (#137423) next »