php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31744 dbase_get_record_with_names returns false
Submitted: 2005-01-28 16:19 UTC Modified: 2005-01-28 18:33 UTC
From: randy at rcs-comp dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.2 OS: N/A
Private report: No CVE-ID: None
 [2005-01-28 16:19 UTC] randy at rcs-comp dot com
Description:
------------
dbase_get_record_with_names returns a false value if there was an error reading the dbf record.  The documentation says only an array will be returned.

Reproduce code:
---------------
$array = dbase_get_record_with_names($fp,$i)
if( !is_array( $result ) ) {
        var_dump( $result );
}

Expected result:
----------------
Warning: dbase_get_record_with_names() [function.dbase-get-record-with-names]: Tried to read bad record 933 in c:\htdocs\sfb\db\sfb\include\function_convert.php on line 56
Warning: dbase_get_record_with_names() [function.dbase-get-record-with-names]: Tried to read bad record 934 in c:\htdocs\sfb\db\sfb\include\function_convert.php on line 56


Actual result:
--------------
Warning: dbase_get_record_with_names() [function.dbase-get-record-with-names]: Tried to read bad record 933 in c:\htdocs\sfb\db\sfb\include\function_convert.php on line 56
bool(false)
Warning: dbase_get_record_with_names() [function.dbase-get-record-with-names]: Tried to read bad record 934 in c:\htdocs\sfb\db\sfb\include\function_convert.php on line 56
bool(false)

*notice the 'bool(false)' that shows 'false' is being returned

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-28 18:33 UTC] didou@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jan 27 12:00:01 2026 UTC