Download src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-starts-slash.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-starts-slash.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-starts-slash.phpt
-
curl -L -o config-array-validation-suppress-path-starts-slash.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-starts-slash.phpt
649 Bytes
| --TEST-- | |
| FPM: Validates arrays in configuration are correctly set - access.suppress_path begins with forward slash | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| --FILE-- | |
| require_once "tester.inc"; | |
| $cfg = <<<EOT | |
| [global] | |
| error_log = {{FILE:LOG}} | |
| pid = {{FILE:PID}} | |
| [unconfined] | |
| listen = {{ADDR}} | |
| access.suppress_path[] = needs / to start with a slash | |
| pm = static | |
| pm.max_children = 5 | |
| EOT; | |
| $tester = new FPM\Tester($cfg); | |
| $tester->start(['-tt']); | |
| $tester->expectLogError("\[%s:%d\] Values provided to field 'access.suppress_path' must begin with '\/'"); | |
| Done | |
| --EXPECT-- | |
| Done | |
| --CLEAN-- | |
| require_once "tester.inc"; | |
| FPM\Tester::clean(); | |