1--TEST-- 2FPM: bug68423 - Multiple pools with different PMs (dynamic + ondemand + static) 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[pool_dynamic] 14listen = {{ADDR[dynamic]}} 15ping.path = /ping 16ping.response = pong-dynamic 17pm = dynamic 18pm.max_children = 5 19pm.start_servers = 2 20pm.min_spare_servers = 1 21pm.max_spare_servers = 3 22[pool_ondemand] 23listen = {{ADDR[ondemand]}} 24ping.path = /ping 25ping.response = pong-on-demand 26pm = ondemand 27pm.max_children = 2 28pm.process_idle_timeout = 10 29[pool_static] 30listen = {{ADDR[static]}} 31ping.path = /ping 32ping.response = pong-static 33pm = static 34pm.max_children = 2 35EOT; 36 37$tester = new FPM\Tester($cfg); 38$tester->start(); 39$tester->expectLogStartNotices(); 40$tester->ping('{{ADDR[dynamic]}}', 'pong-dynamic'); 41$tester->ping('{{ADDR[ondemand]}}', 'pong-on-demand'); 42$tester->ping('{{ADDR[static]}}', 'pong-static'); 43$tester->terminate(); 44$tester->expectLogTerminatingNotices(); 45$tester->close(); 46 47?> 48Done 49--EXPECT-- 50Done 51--CLEAN-- 52<?php 53require_once "tester.inc"; 54FPM\Tester::clean(); 55?> 56