summaryrefslogtreecommitdiff
path: root/ext/dba
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-08-19 08:04:20 +0000
committerMarcus Boerger <helly@php.net>2004-08-19 08:04:20 +0000
commitba75dd7877c69306799fa0501e8845c4cce8a718 (patch)
treeea7dd5f5de975e0ee0c8a240c4db72eea2878db9 /ext/dba
parentf97066dc17ac7ed61056925ecaeb9ec0f80dada2 (diff)
downloadphp-git-ba75dd7877c69306799fa0501e8845c4cce8a718.tar.gz
Fix issue in test
Diffstat (limited to 'ext/dba')
-rw-r--r--ext/dba/tests/dba_handler.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc
index 9a25316f27..c1e3c49c70 100644
--- a/ext/dba/tests/dba_handler.inc
+++ b/ext/dba/tests/dba_handler.inc
@@ -74,6 +74,9 @@ do {
dba_close($dba_reader);
}
if (($db_file = dba_popen($db_filename, 'r'.($handler!='gdbm'?'-':''), $handler))!==FALSE) {
+ if ($handler == 'dbm') {
+ dba_close($db_file);
+ }
}
if ($lock_flag == '') {