#31744 [Opn->Csd]: dbase_get_record_with_names returns false

From: Date: Fri, 28 Jan 2005 17:33:51 +0000
Subject: #31744 [Opn->Csd]: dbase_get_record_with_names returns false
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366229@lists.php.net to get a copy of this message
ID: 31744 Updated by: didou@php.net Reported By: randy at rcs-comp dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: 5.0.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2005-01-28 16:19:52] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31744&edit=1

« previous php.doc (#969366229) next »