Download src/php/php-src/ext/curl/tests/bug65646.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug65646.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug65646.phpt
-
curl -L -o bug65646.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug65646.phpt
346 Bytes
| --TEST-- | |
| Bug #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir disabled | |
| --EXTENSIONS-- | |
| curl | |
| --SKIPIF-- | |
| if (ini_get('open_basedir')) exit("skip open_basedir is set"); | |
| --FILE-- | |
| $ch = curl_init(); | |
| var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true)); | |
| curl_close($ch); | |
| --EXPECT-- | |
| bool(true) | |