Download src/php/php-src/sapi/fpm/tests/config-array-validation-php-value-key.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-php-value-key.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/fpm/tests/config-array-validation-php-value-key.phpt
-
curl -L -o config-array-validation-php-value-key.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/fpm/tests/config-array-validation-php-value-key.phpt
580 Bytes
| --TEST-- | |
| FPM: Validates arrays in configuration are correctly set - php_value array must be passed a key | |
| --SKIPIF-- | |
| include "skipif.inc"; | |
| --FILE-- | |
| require_once "tester.inc"; | |
| $cfg = <<<EOT | |
| [global] | |
| error_log = {{FILE:LOG}} | |
| pid = {{FILE:PID}} | |
| [unconfined] | |
| listen = {{ADDR}} | |
| php_value[] = E_ALL | |
| pm = static | |
| pm.max_children = 5 | |
| EOT; | |
| $tester = new FPM\Tester($cfg); | |
| $tester->start(['-tt']); | |
| $tester->expectLogError("\[%s:%d\] You must provide a key for field 'php_value'"); | |
| Done | |
| --EXPECT-- | |
| Done | |
| --CLEAN-- | |
| require_once "tester.inc"; | |
| FPM\Tester::clean(); | |