Download src/php/php-src/ext/dl_test/tests/skip.inc from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dl_test/tests/skip.inc
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/dl_test/tests/skip.inc
-
curl -L -o skip.inc https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/dl_test/tests/skip.inc
518 Bytes
| // Check that the dl_test extension is built. We don't use the --EXTENSIONS-- | |
| // section because we want to load the extension with dl(). | |
| if (PHP_OS_FAMILY === 'Windows') { | |
| $path = ini_get('extension_dir') . DIRECTORY_SEPARATOR . 'php_dl_test.dll'; | |
| } else { | |
| $path = ini_get('extension_dir') . DIRECTORY_SEPARATOR . 'dl_test.so'; | |
| } | |
| if (!file_exists($path)) { | |
| die(sprintf('skip dl_test extension is not built (tried %s)', $path)); | |
| } | |
| if (getenv('SKIP_ASAN')) { | |
| die('xleak dl() crashes LSan'); | |
| } | |