1--TEST--
2FPM: bug68381 - Log messages with warning level only
3--SKIPIF--
4<?php
5include "skipif.inc";
6if (getenv("SKIP_ASAN")) die("skip Often fails on azure with asan for unknown reason");
7?>
8--FILE--
9<?php
10
11require_once "tester.inc";
12
13$cfg = <<<EOT
14[global]
15error_log = {{FILE:LOG}}
16log_level = warning
17[unconfined]
18listen = {{ADDR}}
19pm = dynamic
20pm.max_children = 5
21pm.start_servers = 2
22pm.min_spare_servers = 1
23pm.max_spare_servers = 3
24EOT;
25
26$tester = new FPM\Tester($cfg);
27$tester->start();
28$tester->checkConnection();
29$tester->terminate();
30$tester->expectNoLogMessages();
31$tester->close();
32
33?>
34Done
35--EXPECT--
36Done
37--CLEAN--
38<?php
39require_once "tester.inc";
40FPM\Tester::clean();
41?>
42