#25959 [Ver->Fbk]: dbase_get_record() crashes php on some files

From: Date: Thu, 15 Jan 2004 06:31:57 +0000
Subject: #25959 [Ver->Fbk]: dbase_get_record() crashes php on some files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53360@lists.php.net to get a copy of this message
ID: 25959 Updated by: sniper@php.net Reported By: webmaster at pulsarbremen dot de -Status: Verified +Status: Feedback Bug Type: dBase related Operating System: * PHP Version: 4CVS-2003-10-18 New Comment: Please give feedback requested by steinm@php.net Previous Comments: ------------------------------------------------------------------------ [2003-11-27 02:38:27] steinm@php.net 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 structure? ------------------------------------------------------------------------ [2003-10-22 18:35:20] webmaster at pulsarbremen dot de 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 this bug report at http://bugs.php.net/?id=25959&edit=1

« previous php.bugs (#53360) next »