ID: 41010 Updated by: [EMAIL PROTECTED] Reported By: hack988 at gmail dot com -Status: Open +Status: Bogus Bug Type: dBase related Operating System: win32 PHP Version: 4.4.6 New Comment:
. Previous Comments: ------------------------------------------------------------------------ [2007-05-01 13:01:18] hack988 at gmail dot com This module has a mistake, You should use dbase_get_record() instead dbase_get_record_with_names(). The dbase_add and dbase_replace cannot use associative matrix. $db = dbase_open( 'test.dbf', 2 ); $record = dbase_get_record_with_names ( $db, 1); unset($record['deleted']); dbase_add_record( $db, $record ); dbase_close($db); this discription come from http://bugs.php.net/bug.php?id=33480 I test that discripted bug at php 4.4.6 it still report error use code $record=array('name'=>'hack988','from'=>'china'); dbase_add_record( $db, $record ); php still report dbase_add_record function failed but use code $record=array(0=>'hack988',1=>'china'); dbase_add_record( $db, $record ); the function dbase_add_record work will ------------------------------------------------------------------------ [2007-04-18 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-04-10 14:05:26] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2007-04-06 12:58:43] hack988 at gmail dot com Description: ------------ Bug #33480 still in php 4.4.6 The dbase_add cannot use associative matrix. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41010&edit=1