php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54125 Warning: dbase_open() [function.dbase-open]: unable to open database C:/xampp/h
Submitted: 2011-03-01 02:59 UTC Modified: 2016-08-14 04:22 UTC
Votes:14
Avg. Score:4.3 ± 1.0
Reproduced:9 of 9 (100.0%)
Same Version:3 (33.3%)
Same OS:6 (66.7%)
From: justsaymayb at yahoo dot com Assigned: cmb (profile)
Status: No Feedback Package: dbase (PECL)
PHP Version: 5.3SVN-2011-02-28 (snap) OS: windows
Private report: No CVE-ID: None
 [2011-03-01 02:59 UTC] justsaymayb at yahoo dot com
Description:
------------
im execute my code to open the dbf file but it show me this

Warning: dbase_open() [function.dbase-open]: unable to open database 
C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF in 
C:\xampp\htdocs\mpjbt\Utility\ConfigurationDBF.php on line 202
Could not open C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF for import.

But, im execute another dbf file its works.



Test script:
---------------
function import_dbf_restday($db, $table, $dbf_file)
{
	global $conn;
	if (!$dbf = dbase_open($dbf_file, 0))
	{ 
		die("Could not open $dbf_file for import."); 
	}
	$num_rec = dbase_numrecords($dbf);
	$num_fields = dbase_numfields($dbf);
	$fields = array();
}


Expected result:
----------------
EXPECTED RESULT:

No errors and the database opened.

Actual result:
--------------
Warning: dbase_open() [function.dbase-open]: unable to open database 
C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF in 
C:\xampp\htdocs\mpjbt\Utility\ConfigurationDBF.php on line 202
Could not open C:/xampp/htdocs/mpjbt/dbfFile/fpt/fptaudit.DBF for import.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-10 14:07 UTC] cmb@php.net
-Package: dBase related +Package: dbase
 [2016-08-05 14:39 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2016-08-05 14:39 UTC] cmb@php.net
That might be related #63607.

Anyhow, can you please provide the failing database for download?
 [2016-08-14 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 15:01:27 2024 UTC