xref: /PHP-7.3/ext/dba/tests/bug78808.phpt (revision c05a069a)
1--TEST--
2Bug #78808 ([LMDB] MDB_MAP_FULL: Environment mapsize limit reached)
3--SKIPIF--
4<?php
5if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
6$handler = 'lmdb';
7require_once __DIR__ .'/skipif.inc';
8?>
9--FILE--
10<?php
11$handler = 'lmdb';
12require_once __DIR__ .'/test.inc';
13$lmdb_h = dba_open($db_filename, 'c', 'lmdb', 0644, 5*1048576);
14for ($i = 0; $i < 50000; $i++) {
15    dba_insert('key' . $i, 'value '. $i, $lmdb_h);
16}
17dba_close($lmdb_h);
18echo "done\n";
19?>
20--EXPECT--
21done
22--CLEAN--
23<?php
24require_once dirname(__FILE__) .'/clean.inc';
25?>
26