Download src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-key.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-key.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-key.phpt
-
curl -L -o config-array-validation-suppress-path-key.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-suppress-path-key.phpt
614 Bytes
| --TEST-- | |
| FPM: Validates arrays in configuration are correctly set - access.suppress_path doesn't allow key | |
| --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[pingpath] = /ping | |
| pm = static | |
| pm.max_children = 5 | |
| EOT; | |
| $tester = new FPM\Tester($cfg); | |
| $tester->start(['-tt']); | |
| $tester->expectLogError("\[%s:%d\] Keys provided to field 'access.suppress_path' are ignored"); | |
| Done | |
| --EXPECT-- | |
| Done | |
| --CLEAN-- | |
| require_once "tester.inc"; | |
| FPM\Tester::clean(); | |