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