]> granicus.if.org Git - php/commitdiff
more test fixes
authorMichael Wallner <mike@php.net>
Tue, 3 Dec 2013 17:18:40 +0000 (18:18 +0100)
committerMichael Wallner <mike@php.net>
Tue, 3 Dec 2013 17:18:40 +0000 (18:18 +0100)
ext/dba/tests/dba_db4_003.phpt
ext/dba/tests/dba_db4_007.phpt
ext/dba/tests/dba_handler.inc
ext/dba/tests/dba_tcadb.phpt

index 7e8568c0855f3811a54c377dbbceec3e0c7589f9..8708170fc1bcd532de22f23bb278fbb2366d017c 100644 (file)
@@ -39,8 +39,6 @@ require(dirname(__FILE__) .'/clean.inc');
 database handler: db4
 int(14)
 
-Notice: dba_open(): %stest0.dbm: unexpected file type or format in %sdba_db4_003.php on line %d
-
 Warning: dba_open(%stest0.dbm,c): Driver initialization failed for handler: db4: Invalid argument in %sdba_db4_003.php on line %d
 Error creating %stest0.dbm
 Dummy contents
index bd95e0bec74ddd2f60acd77db3c352d7c825fd92..027d0af0329115ac712e826570ea594cec9096df 100644 (file)
@@ -35,7 +35,5 @@ require(dirname(__FILE__) .'/clean.inc');
 database handler: db4
 int(14)
 
-Notice: dba_popen(): %stest0.dbm: unexpected file type or format in %sdba_db4_007.php on line %d
-
 Warning: dba_popen(%stest0.dbm,c): Driver initialization failed for handler: db4: Invalid argument in %sdba_db4_007.php on line %d
 Error creating %stest0.dbm
index a950e903af426b49389688d7b85be456554cc669..ed2a52400aceb6d01e09c21d437bd1563eefa6b4 100644 (file)
@@ -82,7 +82,7 @@ do {
                dba_close($dba_reader);
        }
        if (($db_file = dba_popen($db_filename, 'r'.($lock_flag==''?'':'-'), $handler))!==FALSE) {
-               if ($handler == 'dbm') {
+               if ($handler == 'dbm' || $handler == "tcadb") {
                        dba_close($db_file);
                }
        }
index 28b6dd8f0b5a0491037e43c4c63997c192764d94..f75aa813d4838ad2d4386c99425cb908c02e2e0e 100644 (file)
@@ -16,6 +16,12 @@ DBA TCADB handler test
        require_once dirname(__FILE__) .'/dba_handler.inc';
 ?>
 ===DONE===
+--CLEAN--
+<?php 
+$db_filename = $db_file = dirname(__FILE__) .'/test0.tch';
+@unlink($db_filename);
+@unlink($db_filename.'.lck');
+?>
 --EXPECT--
 database handler: tcadb
 3NYNYY