]> granicus.if.org Git - php/commitdiff
Fix issue in test
authorMarcus Boerger <helly@php.net>
Thu, 19 Aug 2004 08:04:20 +0000 (08:04 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 19 Aug 2004 08:04:20 +0000 (08:04 +0000)
ext/dba/tests/dba_handler.inc

index 9a25316f27a29873940728b67069a1b0fcd8574f..c1e3c49c70e0fdb295dee93988ed70884423815f 100644 (file)
@@ -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 == '') {