summaryrefslogtreecommitdiff
path: root/ext/dba/tests/dba_handler.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/tests/dba_handler.inc')
-rw-r--r--ext/dba/tests/dba_handler.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc
index 98048bb7c0..5690075fab 100644
--- a/ext/dba/tests/dba_handler.inc
+++ b/ext/dba/tests/dba_handler.inc
@@ -1,6 +1,5 @@
<?php
echo "database handler: $handler\n";
- @unlink($db_filename);
if (($db_file = dba_open($db_filename, 'n'.$lock_flag, $handler))!==FALSE) {
dba_insert("key1", "Content String 1", $db_file);
dba_insert("key2", "Content String 2", $db_file);
@@ -28,7 +27,7 @@
echo "Error creating database\n";
}
$db_writer = dba_open($db_filename, 'w'.$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.($lock_flag ? 't' : ''), $handler))===false) {
echo "Cannot read during write operation\n";
} else {
echo "Read during write permitted\n";