]> granicus.if.org Git - php/commitdiff
Fix broken test include
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 18 Aug 2016 15:53:57 +0000 (17:53 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 18 Aug 2016 15:53:57 +0000 (17:53 +0200)
To avoid that the test stalls, we must always use `t` mode.

ext/dba/tests/dba_handler.inc

index a950e903af426b49389688d7b85be456554cc669..0f348bc01e411aa0bb89b6f779c1a62aad32bcca 100644 (file)
@@ -40,7 +40,7 @@ do {
        }
        if ($handler != 'cdb') {
                $db_writer = dba_open($db_filename, 'c'.$lock_flag, $handler);
-               if (($dba_reader = @dba_open($db_filename, 'r'.$lock_flag.($lock_flag ? 't' : ''), $handler))===false) {
+               if (($dba_reader = @dba_open($db_filename, 'r'.$lock_flag.'t', $handler))===false) {
                        echo "Read during write: not allowed\n";
                } else {
                        echo "Read during write: allowed\n";