1--TEST--
2FPM: Status pool is inheriting FPM setting overrides test - expose_php = off
3--SKIPIF--
4<?php include "skipif.inc"; ?>
5--FILE--
6<?php
7
8require_once "tester.inc";
9
10$cfg = <<<EOT
11[global]
12error_log = {{FILE:LOG}}
13[unconfined]
14listen = {{ADDR}}
15pm = static
16pm.max_children = 1
17pm.status_listen = {{ADDR[status]}}
18pm.status_path = /status
19php_flag[expose_php] = Off
20EOT;
21
22$tester = new FPM\Tester($cfg);
23$tester->start();
24$tester->expectLogStartNotices();
25$response = $tester->request('', [], '/status', '{{ADDR[status]}}');
26$response->expectNoHeader('X-Powered-By');
27$tester->terminate();
28$tester->expectLogTerminatingNotices();
29$tester->close();
30
31?>
32Done
33--EXPECT--
34Done
35--CLEAN--
36<?php
37require_once "tester.inc";
38FPM\Tester::clean();
39?>
40