Bug #7620 Updated: dbase_get_record_with_names crashes php

From: Date: Tue, 09 Oct 2001 08:42:06 +0000
Subject: Bug #7620 Updated: dbase_get_record_with_names crashes php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67591@lists.php.net to get a copy of this message
ID: 7620 Updated by: sniper Reported By: swift@mindless.com Old Status: Open Status: Closed Bug Type: dBase related Operating System: Win98Me PHP Version: 4.0.3pl1 New Comment: Please try the latest CVS snapshot from http://snaps.php.net/ as this should now be fixed. --Jani Previous Comments: ------------------------------------------------------------------------ [2000-11-03 08:46:43] swift@mindless.com Hi! When I use dbase_get_record_with_names instead of dbase_get_record on one of my database to import, php crashes! If you need it, I could send you the dbase-database that caused the problem - please mail me if I should do so. ... tobias wiersch from germany PS: I used the following code (example): <?php include('head.php'); include('body.php'); include('maincfg.php'); $dbf = dbase_open('d:/3dx/php/product.dbf', 0) or die('there is no product.dbf!'); $RecNum = dbase_numrecords($dbf); for($i=1; $i <= $RecNum; $i++) { $row = dbase_get_record_with_names($dbf, $i); echo $row["prod_no"] . "<br>"; } dbase_close($dbf); ?> ---------------- but this is working: <?php include('head.php'); include('body.php'); include('maincfg.php'); $dbf = dbase_open('d:/3dx/php/product.dbf', 0) or die('there is no product.dbf!'); $RecNum = dbase_numrecords($dbf); for($i=1; $i <= $RecNum; $i++) { $row = dbase_get_record($dbf, $i); echo $row[0] . "<br>"; } dbase_close($dbf); ?> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=7620&edit=1

« previous php.dev (#67591) next »