xref: /PHP-8.0/ext/dba/tests/bug78808.phpt (revision c11b52de)
1--TEST--
2Bug #78808 ([LMDB] MDB_MAP_FULL: Environment mapsize limit reached)
3--SKIPIF--
4<?php
5$handler = 'lmdb';
6require_once __DIR__ .'/skipif.inc';
7?>
8--FILE--
9<?php
10$handler = 'lmdb';
11require_once __DIR__ .'/test.inc';
12$value = str_repeat('*', 0x100000);
13$lmdb_h = dba_open($db_filename, 'c', 'lmdb', 0644, 5*1048576);
14for ($i = 0; $i < 3; $i++) {
15    dba_insert('key' . $i, $value, $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