|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-03 19:17 UTC] didou@php.net
[2005-02-04 15:47 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 15:00:02 2025 UTC |
Description: ------------ When opening a dbf file using dbase_open($file, 1), the call fails because it can't reads the header infos. We can only open dbase files in read-only or read-write mode. Either it's an implementation or a documentation one. If it's the intended behaviour, can you make it throw a warning more explicit ? Thanks in advance, didou Reproduce code: --------------- <?php error_reporting(E_ALL); $desc = array( array("foo", "C", 50), ); $df = dbase_create("db.dbf", $desc); dbase_close($df); var_dump(dbase_open('db.dbf', 1)); ?> Expected result: ---------------- bool(true) Actual result: -------------- Unable to get header Warning: unable to open database db.dbf in /home/didou/plop.php on line 11 bool(false)