|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-28 18:33 UTC] didou@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jan 27 13:00:01 2026 UTC |
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