Skip to content

Commit bc1214f

Browse files
committed
Fix broken test include
To avoid that the test stalls, we must always use `t` mode.
1 parent 761d2f6 commit bc1214f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/dba/tests/dba_handler.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ do {
4040
}
4141
if ($handler != 'cdb') {
4242
$db_writer = dba_open($db_filename, 'c'.$lock_flag, $handler);
43-
if (($dba_reader = @dba_open($db_filename, 'r'.$lock_flag.($lock_flag ? 't' : ''), $handler))===false) {
43+
if (($dba_reader = @dba_open($db_filename, 'r'.$lock_flag.'t', $handler))===false) {
4444
echo "Read during write: not allowed\n";
4545
} else {
4646
echo "Read during write: allowed\n";

0 commit comments

Comments
 (0)