1--TEST-- 2FPM: bug68391 - Configuration inclusion in alphabetical order 3--SKIPIF-- 4<?php 5include "skipif.inc"; 6?> 7--FILE-- 8<?php 9 10require_once "tester.inc"; 11 12$cfg['main'] = <<<EOT 13[global] 14error_log = {{FILE:LOG}} 15log_level = notice 16include = {{INCLUDE:CONF}} 17EOT; 18 19$cfgPoolTemplate = <<<EOT 20[%name%] 21listen = {{ADDR[%name%]}} 22user = foo 23pm = ondemand 24pm.max_children = 5 25EOT; 26 27$names = ['cccc', 'aaaa', 'eeee', 'dddd', 'bbbb']; 28foreach($names as $name) { 29 $cfg[$name] = str_replace('%name%', $name, $cfgPoolTemplate); 30} 31 32$tester = new FPM\Tester($cfg); 33$tester->start(); 34$userMessage = "'user' directive is ignored when FPM is not running as root"; 35$tester->expectLogNotice($userMessage, 'aaaa'); 36$tester->expectLogNotice($userMessage, 'bbbb'); 37$tester->expectLogNotice($userMessage, 'cccc'); 38$tester->expectLogNotice($userMessage, 'dddd'); 39$tester->expectLogNotice($userMessage, 'eeee'); 40$tester->expectLogStartNotices(); 41$tester->terminate(); 42$tester->expectLogTerminatingNotices(); 43$tester->close(); 44 45?> 46Done 47--EXPECT-- 48Done 49--CLEAN-- 50<?php 51require_once "tester.inc"; 52FPM\Tester::clean(); 53?> 54