Download src/php/php-src/ext/dba/tests/bug65708.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug65708.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dba/tests/bug65708.phpt
-
curl -L -o bug65708.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dba/tests/bug65708.phpt
690 Bytes
| --TEST-- | |
| Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write) | |
| --EXTENSIONS-- | |
| dba | |
| --SKIPIF-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| check_skip_any(); | |
| --FILE-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| $name = 'bug65708.db'; | |
| $db = get_any_db($name); | |
| $key = 1; | |
| $copy = $key; | |
| echo gettype($key)."\n"; | |
| echo gettype($copy)."\n"; | |
| dba_exists($key, $db); | |
| echo gettype($key)."\n"; | |
| echo gettype($copy)."\n"; | |
| dba_close($db); | |
| --CLEAN-- | |
| require_once __DIR__ . '/setup/setup_dba_tests.inc'; | |
| $db_name = 'bug65708.db'; | |
| cleanup_standard_db($db_name); | |
| --EXPECTF-- | |
| Using handler: "%s" | |
| integer | |
| integer | |
| integer | |
| integer | |