Bug #55239 [NEW]: dbase date field
| From: | m4rk dot gm4il at gmail dot com | Date: | Tue, 19 Jul 2011 11:12:26 +0000 |
| Subject: | Bug #55239 [NEW]: dbase date field | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-161998@lists.php.net to get a copy of this message | ||
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',
'max@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