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