From:             
Operating system: windows
PHP version:      5.3SVN-2011-02-28 (snap)
Package:          dBase related
Bug Type:         Bug
Bug description:Warning: dbase_open() [function.dbase-open]: unable to open 
database C:/xampp/h

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.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54125&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54125&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54125&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54125&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54125&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54125&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54125&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54125&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54125&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54125&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54125&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54125&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54125&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54125&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54125&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54125&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54125&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54125&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54125&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54125&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54125&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54125&r=mysqlcfg

Reply via email to