#48313 [Opn->Fbk]: fgetcsv doesn't report empty row as described

From: Date: Sun, 17 May 2009 20:22:51 +0000
Subject: #48313 [Opn->Fbk]: fgetcsv doesn't report empty row as described
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137424@lists.php.net to get a copy of this message
ID: 48313 Updated by: jani@php.net Reported By: bitworks at web dot de -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Windows XP SP3 PHP Version: 5.2.9 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2009-05-17 20:16:07] bitworks at web dot de 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 this bug report at http://bugs.php.net/?id=48313&edit=1

« previous php.bugs (#137424) next »