Download src/php/php-src/sapi/cli/tests/bug64878.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/bug64878.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/cli/tests/bug64878.phpt
-
curl -L -o bug64878.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/cli/tests/bug64878.phpt
428 Bytes
| --TEST-- | |
| Bug #64878 (304 responses return Content-Type header) | |
| --INI-- | |
| allow_url_fopen=1 | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| --FILE-- | |
| include "php_cli_server.inc"; | |
| php_cli_server_start('header("HTTP/1.1 304 Not Modified")', null); | |
| $headers = get_headers('http://' . PHP_CLI_SERVER_ADDRESS); | |
| echo count(array_filter($headers, function ($value) { | |
| return stripos($value, 'Content-Type') === 0; | |
| })); | |
| --EXPECT-- | |
| 0 | |