|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-11 12:36 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2016-08-11 13:14 UTC] cmb@php.net
[2016-08-11 13:20 UTC] cmb@php.net
[2016-08-11 13:21 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2021-04-06 10:18 UTC] git@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 05 13:00:01 2026 UTC |
Description: ------------ When dbase_create() fails (i.e. returns false) after it has opened the file, the file descriptor is never closed. This can be seen nicely on NTFS, where opened files are locked for some operations, such as deletion. Test script: --------------- <?php $db = dbase_create('foo.dbf', array(array('error', '-'))); var_dump($db); var_dump(unlink('foo.dbf')); Expected result: ---------------- Warning: dbase_create(): unknown field type '-' in … bool(false) bool(true) Actual result: -------------- Warning: dbase_create(): unknown field type '-' in … bool(false) Warning: unlink(foo.dbf): Text file busy in … bool(false)