|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-19 14:48 UTC] jani@php.net
[2007-11-27 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
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.