From: Operating system: WINXP PHP version: 5.3.6 Package: dBase related Bug Type: Bug Bug description:dbase date field
Description: ------------ --- >From manual page: http://www.php.net/function.dbase-add-record%23Examples and http://www.php.net/manual/en/function.dbase-create.php --- <?php // database "definition" $def = array( array("date", "D"), array("name", "C", 50), array("age", "N", 3, 0), array("email", "C", 128), array("ismember", "L") ); // creation if (!dbase_create('/tmp/test.dbf', $def)) { echo "Error, can't create the database\n"; } // open in read-write mode $db = dbase_open('/tmp/test.dbf', 2); if ($db) { dbase_add_record($db, array( date('Ymd'), 'Maxim Topolov', '23', 'm...@example.com', 'T')); dbase_close($db); } ?> Expected result: ---------------- the data on date, name, age, email, ismember should all be saved on dbf. Actual result: -------------- upon saving the database, the date field and ismember field have 0 length. -- Edit bug report at https://bugs.php.net/bug.php?id=55239&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55239&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55239&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55239&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55239&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55239&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55239&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55239&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55239&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55239&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55239&r=support Expected behavior: https://bugs.php.net/fix.php?id=55239&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55239&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55239&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55239&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55239&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55239&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55239&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55239&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55239&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55239&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55239&r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55239&r=trysnapshot54