diff options
Diffstat (limited to 'ext/dba/tests/bug78808.phpt')
-rw-r--r-- | ext/dba/tests/bug78808.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/dba/tests/bug78808.phpt b/ext/dba/tests/bug78808.phpt new file mode 100644 index 0000000000..9aa4e22a32 --- /dev/null +++ b/ext/dba/tests/bug78808.phpt @@ -0,0 +1,25 @@ +--TEST-- +Bug #78808 ([LMDB] MDB_MAP_FULL: Environment mapsize limit reached) +--SKIPIF-- +<?php +if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); +$handler = 'lmdb'; +require_once __DIR__ .'/skipif.inc'; +?> +--FILE-- +<?php +$handler = 'lmdb'; +require_once __DIR__ .'/test.inc'; +$lmdb_h = dba_open($db_filename, 'c', 'lmdb', 0644, 5*1048576); +for ($i = 0; $i < 50000; $i++) { + dba_insert('key' . $i, 'value '. $i, $lmdb_h); +} +dba_close($lmdb_h); +echo "done\n"; +?> +--EXPECT-- +done +--CLEAN-- +<?php +require_once dirname(__FILE__) .'/clean.inc'; +?> |