php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41010 Bug #33480 still in php 4.4.6
Submitted: 2007-04-06 12:58 UTC Modified: 2007-05-02 10:37 UTC
From: hack988 at gmail dot com Assigned:
Status: Not a bug Package: dBase related
PHP Version: 4.4.6 OS: win32
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hack988 at gmail dot com
New email:
PHP Version: OS:

 

 [2007-04-06 12:58 UTC] hack988 at gmail dot com
Description:
------------
Bug #33480 still in php 4.4.6
The dbase_add cannot
use associative matrix.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-10 14:05 UTC] tony2001@php.net
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-18 01:00 UTC] 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-05-01 13:01 UTC] 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-05-02 10:37 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 09:01:27 2024 UTC