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