1--TEST--
2FPM: set pm.max_spawn_rate
3--SKIPIF--
4<?php
5include "skipif.inc";
6?>
7--FILE--
8<?php
9
10require_once "tester.inc";
11
12$cfg = <<<EOT
13[global]
14error_log = {{FILE:LOG}}
15log_level = notice
16[unconfined]
17listen = {{ADDR}}
18pm = dynamic
19pm.max_children = 5
20pm.start_servers = 2
21pm.min_spare_servers = 1
22pm.max_spare_servers = 3
23pm.max_spawn_rate = 64
24EOT;
25
26$tester = new FPM\Tester($cfg);
27$tester->start(['-t', '-t']);
28$tester->expectLogConfigOptions(['pm.max_spawn_rate' => 64]);
29$tester->close();
30
31?>
32Done
33--EXPECT--
34Done
35--CLEAN--
36<?php
37require_once "tester.inc";
38FPM\Tester::clean();
39?>
40