php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27144 dbase_get_record_with_names
Submitted: 2004-02-04 09:52 UTC Modified: 2004-02-05 09:54 UTC
From: martin dot cermak at proit dot cz Assigned:
Status: Closed Package: dBase related
PHP Version: 4.3.4 OS: linux
Private report: No CVE-ID: None
 [2004-02-04 09:52 UTC] martin dot cermak at proit dot cz
Description:
------------
Hello,:
when opening some DBF file on linux OS,I got 
finish session
in the dbase_get_record_with_names() func. 
It just disconnect the HTTP
session when encounter this func.

Database must contain MEMO fields.

Example script:
<META http-equiv=Content-Type content="text/html; charset=cp852">
<?
if ( !$file_dbf = dbase_open("XKNFAVYD.dbf",0) ) { 
	echo "Cannot open database\n";
	exit;
}

$pocet=dbase_numrecords($file_dbf);
for($i=1;$i<=$pocet;$i++) {
	$record=dbase_get_record_with_names($file_dbf,$i);
	echo "<pre>";print_r($record);echo "</pre>";
	break;
}
dbase_close($file_dbf);
?>




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-04 19:15 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And maybe put that dbf file available somewhere so we can test ourselves too..

 [2004-02-05 09:54 UTC] martin dot cermak at proit dot cz
Thank you for help,
problem was in structure database DBF.
PHP is all right.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC