1--TEST--
2FPM: bug68421 - IPv6 all addresses and access_log
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:ERR}}
16[unconfined]
17listen = {{ADDR:IPv6:ANY}}
18access.log = {{FILE:LOG:ACC}}
19ping.path = /ping
20ping.response = pong
21pm = dynamic
22pm.max_children = 5
23pm.start_servers = 2
24pm.min_spare_servers = 1
25pm.max_spare_servers = 3
26EOT;
27
28$tester = new FPM\Tester($cfg);
29$tester->start();
30$tester->expectLogStartNotices();
31$tester->ping('127.0.0.1');
32$tester->ping('[::1]');
33$tester->terminate();
34$tester->expectLogTerminatingNotices();
35$tester->close();
36$tester->printAccessLog();
37?>
38Done
39--EXPECTF--
40127.0.0.1 %s "GET /ping" 200
41::1 %s "GET /ping" 200
42Done
43--CLEAN--
44<?php
45require_once "tester.inc";
46FPM\Tester::clean();
47?>
48