Download src/php/php-src/ext/dba/tests/bug71514.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 569 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug71514.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dba/tests/bug71514.phpt
-
curl -L -o bug71514.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug71514.phpt
569 Bytes
| --TEST-- | |
| Bug #71514 (Bad dba_replace condition because of wrong API usage) | |
| --EXTENSIONS-- | |
| dba | |
| --SKIPIF-- | |
| if (!in_array('inifile', dba_handlers())) die('skip inifile handler not available'); | |
| --FILE-- | |
| $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug71514.ini'; | |
| $db = dba_open($filename, 'c', 'inifile'); | |
| dba_insert('foo', 'value1', $db); | |
| dba_replace('foo', 'value2', $db); | |
| var_dump(dba_fetch('foo', $db)); | |
| dba_close($db); | |
| --EXPECT-- | |
| string(6) "value2" | |
| --CLEAN-- | |
| $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug71514.ini'; | |
| unlink($filename); | |