ID: 46536 Updated by: [EMAIL PROTECTED] Reported By: info at skfree dot sk -Status: Open +Status: Bogus Bug Type: dBase related Operating System: Debian/Windows PHP Version: 5.2.6 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. see bug #45102 Previous Comments: ------------------------------------------------------------------------ [2008-11-10 13:44:35] info at skfree dot sk Description: ------------ Create a dbase File with Version 5.2.6 will get currupted dbase header. Can not be opened from Excel or Borlands Dbase-Engine similar bug Bug #41394 seems to be not resolved. Reproduce code: --------------- // database "definition" $def = array( array("date", "D"), array("name", "C", 50), array("age", "N", 3, 0), array("email", "C", 128), array("ismember", "L") ); // creation $db = dbase_create("/tmp/test.dbf", $def); if(!$db) print "<strong>Error!</strong>"; dbase_close($db); Expected result: ---------------- Hexdump of Dbase File with PHP 5.2.1: 00000000 03 6b 05 0f 00 00 00 00 c1 00 bf 00 00 00 00 00 ^^ Day: 15 ^^ Month: 5 ^^ Year from 1900: 107 + 1900 = 2007 ^^ Dbase-Version: 3 = Dbase Level 5 Actual result: -------------- Hexdump of Dbase File with PHP 5.2.6: 00000000 03 6C 0B 0A 00 00 00 00 c1 00 bf 00 00 00 00 00 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46536&edit=1