#31744 [NEW]: dbase_get_record_with_names returns false

From: Date: Fri, 28 Jan 2005 15:19:53 +0000
Subject: #31744 [NEW]: dbase_get_record_with_names returns false
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969366225@lists.php.net to get a copy of this message
From: randy at rcs-comp dot com Operating system: N/A PHP version: 5.0.2 PHP Bug Type: Documentation problem Bug description: dbase_get_record_with_names returns false 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 bug report at http://bugs.php.net/?id=31744&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31744&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31744&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31744&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31744&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31744&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31744&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31744&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31744&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31744&r=support Expected behavior: http://bugs.php.net/fix.php?id=31744&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31744&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31744&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31744&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31744&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31744&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31744&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31744&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31744&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31744&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31744&r=mysqlcfg

« previous php.doc (#969366225) next »