ID: 42885 Updated by: [EMAIL PROTECTED] Reported By: tobwen at gmx dot de -Status: Open +Status: Feedback Bug Type: dBase related Operating System: Linux, win32 PHP Version: 5.2.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.2-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.2-win32-installer-latest.msi Previous Comments: ------------------------------------------------------------------------ [2007-10-08 01:41:47] tobwen at gmx dot de Description: ------------ The dBase-extension, which is bundled with PHP, fills empty dBase-fields with a zero. Reproduce code: --------------- <?php $db = @dbase_open('test.dbf', READ_ONLY); print "<pre>\n"; for ($i = 1; $i <= dbase_numrecords($db); $i++) { $row = dbase_get_record($db, $i); printf("%7d: %s\n", $i, join('|', $row)); } print "</pre>\n"; dbase_close($db); ?> Expected result: ---------------- Access, Office 2003 and various dBase-readers can read those fields and leave them empty. Right now, you can't differ "real" zero entries from empty entries :-( Actual result: -------------- Fields, which are empty (not marked as deleted) are filled with zeros. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42885&edit=1