From: Marcus Boerger Date: Wed, 6 Nov 2002 11:18:00 +0000 (+0000) Subject: check whether a written databse can be appended and if read during write X-Git-Tag: php-4.3.0RC1~230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7b7cf17c2656d8ab169aa66291005a0b6b2aa08;p=php check whether a written databse can be appended and if read during write is permitted #i use ksort for the result here since some dbm libraries sort their result #but that is nothing to test here. --- diff --git a/ext/dba/tests/dba_cdb.phpt b/ext/dba/tests/dba_cdb.phpt index 716773c2f6..a9afe916d8 100644 --- a/ext/dba/tests/dba_cdb.phpt +++ b/ext/dba/tests/dba_cdb.phpt @@ -17,3 +17,14 @@ database handler: cdb 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/dba_db2.phpt b/ext/dba/tests/dba_db2.phpt index cfbdb7e4d7..d23700fbd6 100644 --- a/ext/dba/tests/dba_db2.phpt +++ b/ext/dba/tests/dba_db2.phpt @@ -16,3 +16,14 @@ database handler: db2 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/dba_db3.phpt b/ext/dba/tests/dba_db3.phpt index 82a08c8fd3..eea48d1b2a 100644 --- a/ext/dba/tests/dba_db3.phpt +++ b/ext/dba/tests/dba_db3.phpt @@ -16,3 +16,14 @@ database handler: db3 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/dba_dbm.phpt b/ext/dba/tests/dba_dbm.phpt index 59c1e4ffe0..3f4d0fcf42 100644 --- a/ext/dba/tests/dba_dbm.phpt +++ b/ext/dba/tests/dba_dbm.phpt @@ -16,3 +16,14 @@ database handler: dbm 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} diff --git a/ext/dba/tests/dba_flatfile.phpt b/ext/dba/tests/dba_flatfile.phpt index 33304e72fb..33d01809cf 100644 --- a/ext/dba/tests/dba_flatfile.phpt +++ b/ext/dba/tests/dba_flatfile.phpt @@ -16,3 +16,14 @@ database handler: flatfile 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/dba_gdbm.phpt b/ext/dba/tests/dba_gdbm.phpt index a45c1075c1..79b41dadea 100644 --- a/ext/dba/tests/dba_gdbm.phpt +++ b/ext/dba/tests/dba_gdbm.phpt @@ -16,3 +16,14 @@ database handler: gdbm 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/dba_handler.inc b/ext/dba/tests/dba_handler.inc index 393ffef89b..e8bb97c1a0 100644 --- a/ext/dba/tests/dba_handler.inc +++ b/ext/dba/tests/dba_handler.inc @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/ext/dba/tests/dba_ndbm.phpt b/ext/dba/tests/dba_ndbm.phpt index 8fb94048f3..04ddfa51d0 100644 --- a/ext/dba/tests/dba_ndbm.phpt +++ b/ext/dba/tests/dba_ndbm.phpt @@ -16,3 +16,14 @@ database handler: ndbm 3NYNYY Content String 2 Content 2 replaced +Read during write permitted +Content 2 replaced 2nd time +The 6th value +array(3) { + ["key number 6"]=> + string(13) "The 6th value" + ["key2"]=> + string(27) "Content 2 replaced 2nd time" + ["key5"]=> + string(23) "The last content string" +} \ No newline at end of file diff --git a/ext/dba/tests/test.inc b/ext/dba/tests/test.inc index 768fc8dac5..0f920838ce 100644 --- a/ext/dba/tests/test.inc +++ b/ext/dba/tests/test.inc @@ -1,5 +1,5 @@