|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25959 dbase_get_record() crashes php on some files
Submitted: 2003-10-22 18:35 UTC Modified: 2004-01-20 04:37 UTC
From: webmaster at pulsarbremen dot de Assigned:
Status: No Feedback Package: dBase related
PHP Version: 4CVS-2003-10-18 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
2 + 39 = ?
Subscribe to this entry?

 [2003-10-22 18:35 UTC] webmaster at pulsarbremen dot de
Experiencing the following problem:
Using dbase_get_record() or dbase_get_record_with_names() on some files makes php.exe crash.
Running php-4.3.3-Win32.
You can find the DBF-file at
These files are generated by a radio automation software (tried to generate a new one: same result), I have no influence on the structure of the files but need to read them.

Thanks for any help!

Reproduce code:
$db_path = "DRSMain.DBF";
$dbh = dbase_open($db_path,0);
$rowcount = dbase_numrecords ($dbh);
    for ($i=1; $i <= $rowcount; $i++) {
          $row = dbase_get_record_with_names($dbh,$i);
          echo $row[ARTIST];

Expected result:
Script should write contents of the ARTIST-field in every database row.

Actual result:
php.exe crashes (no output), apache shows error 500 (internal server error)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-27 02:38 UTC]
It looks like your database is in dbase IV format.
The first 32 bytes are idenitical to dbase III but the
fields specification seems to be different.
Actually it doesn't look right for a dbase IV file but
I haven't seen to many and could wrong.
Do you have more information about the expected table

 [2004-01-15 01:31 UTC]
Please give feedback requested by
 [2004-01-20 04:37 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 11:01:28 2024 UTC