From:             webmaster at pulsarbremen dot de
Operating system: Win2K SP4
PHP version:      4.3.3
PHP Bug Type:     dBase related
Bug description:  dbase_get_record() crashes php.exe on some files

Description:
------------
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 http://www.pulsarbremen.de/DRSMain.DBF
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)

-- 
Edit bug report at http://bugs.php.net/?id=25959&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25959&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25959&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25959&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25959&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25959&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25959&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25959&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25959&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25959&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25959&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25959&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25959&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25959&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25959&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25959&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25959&r=float

Reply via email to