Download src/php/php-src/Zend/tests/assert/expect_007.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 546 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_007.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/assert/expect_007.phpt
-
curl -L -o expect_007.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/assert/expect_007.phpt
546 Bytes
| --TEST-- | |
| test compiled reason | |
| --INI-- | |
| zend.assertions=1 | |
| assert.exception=1 | |
| --FILE-- | |
| $next = 1; | |
| $data = array( | |
| "key" => "X-HTTP ", | |
| "value" => "testing" | |
| ); | |
| class HeaderMalfunctionError extends AssertionError {} | |
| assert (preg_match("~^([a-zA-Z0-9-]+)$~", $data["key"]), new HeaderMalfunctionError("malformed key found at {$next} \"{$data["key"]}\"")); | |
| --EXPECTF-- | |
| Fatal error: Uncaught HeaderMalfunctionError: malformed key found at 1 "X-HTTP " in %sexpect_007.php:10 | |
| Stack trace: | |
| #0 {main} | |
| thrown in %sexpect_007.php on line 10 | |