Download src/php/php-src/tests/run-test/extensions-shared.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/run-test/extensions-shared.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/run-test/extensions-shared.phpt
-
curl -L -o extensions-shared.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/run-test/extensions-shared.phpt
539 Bytes
| --TEST-- | |
| phpt EXTENSIONS directive - shared module | |
| --EXTENSIONS-- | |
| openssl | |
| --SKIPIF-- | |
| $php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | |
| if (false !== stripos(`$php -n -m`, 'openssl')) { | |
| die('skip openssl is built static'); | |
| } | |
| $ext_module = ini_get('extension_dir') . DIRECTORY_SEPARATOR . (substr(PHP_OS, 0, 3) === "WIN" ? "php_openssl." : "openssl.") . PHP_SHLIB_SUFFIX; | |
| if( !file_exists($ext_module) ) die('skip openssl shared extension not found'); | |
| --FILE-- | |
| var_dump(extension_loaded('openssl')); | |
| --EXPECT-- | |
| bool(true) | |