PHP 4.0 Bug #7620: dbase_get_record_with_names crashes php

From: Date: Fri, 03 Nov 2000 13:46:43 +0000
Subject: PHP 4.0 Bug #7620: dbase_get_record_with_names crashes php
Groups: php.dev 
Request: Send a blank email to php-dev+get-36954@lists.php.net to get a copy of this message
From: swift@mindless.com Operating system: Win98Me PHP version: 4.0.3pl1 PHP Bug Type: dBase related Bug description: dbase_get_record_with_names crashes php 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 Bug report at: http://bugs.php.net/?id=7620&edit=1

« previous php.dev (#36954) next »