Download src/php/php-src/ext/dba/tests/bug78808.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug78808.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dba/tests/bug78808.phpt
-
curl -L -o bug78808.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug78808.phpt
639 Bytes
| --TEST-- | |
| Bug #78808 ([LMDB] MDB_MAP_FULL: Environment mapsize limit reached) | |
| --EXTENSIONS-- | |
| dba | |
| --SKIPIF-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| check_skip('lmdb'); | |
| --FILE-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| $db_name = 'bug78808.db'; | |
| $value = str_repeat('*', 0x100000); | |
| $lmdb_h = dba_open($db_name, 'c', 'lmdb', 0644, 5*1048576); | |
| for ($i = 0; $i < 3; $i++) { | |
| dba_insert('key' . $i, $value, $lmdb_h); | |
| } | |
| dba_close($lmdb_h); | |
| echo "done\n"; | |
| --EXPECT-- | |
| done | |
| --CLEAN-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| $db_name = 'bug78808.db'; | |
| cleanup_standard_db($db_name); | |