diff options
Diffstat (limited to 'ext/dba/tests/dba_handler.inc')
-rw-r--r-- | ext/dba/tests/dba_handler.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc index 674fd9f463..9a25316f27 100644 --- a/ext/dba/tests/dba_handler.inc +++ b/ext/dba/tests/dba_handler.inc @@ -1,5 +1,8 @@ <?php - echo "database handler: $handler\n"; + +echo "database handler: $handler\n"; + +do { 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); @@ -71,5 +74,14 @@ dba_close($dba_reader); } if (($db_file = dba_popen($db_filename, 'r'.($handler!='gdbm'?'-':''), $handler))!==FALSE) { - } + } + + if ($lock_flag == '') { + break; + } else { + echo "--NO-LOCK--\n"; + $lock_flag = ''; + } +} while(1); + ?>
\ No newline at end of file |