1--TEST-- 2FPM: bug68428 - IPv6 allowed client only 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:ANY}} 18listen.allowed_clients = ::1 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->expectLogStartNotices(); 29$tester->checkRequest('127.0.0.1', 'IPv4: ok', 'IPv4: error'); 30$tester->checkRequest('[::1]', 'IPv6: ok', 'IPv6: error'); 31$tester->terminate(); 32$tester->expectLogTerminatingNotices(); 33$tester->close(); 34 35?> 36Done 37--EXPECT-- 38IPv4: error 39IPv6: ok 40Done 41--CLEAN-- 42<?php 43require_once "tester.inc"; 44FPM\Tester::clean(); 45?> 46