1--TEST-- 2FPM: Process user setting ignored when FPM is not running as root 3--SKIPIF-- 4<?php 5include "skipif.inc"; 6?> 7--FILE-- 8<?php 9 10require_once "tester.inc"; 11 12$cfg = <<<EOT 13[global] 14error_log = {{FILE:LOG}} 15[unconfined] 16listen = {{ADDR}} 17user = foo 18ping.path = /ping 19ping.response = pong 20pm = dynamic 21pm.max_children = 5 22pm.start_servers = 2 23pm.min_spare_servers = 1 24pm.max_spare_servers = 3 25EOT; 26 27$tester = new FPM\Tester($cfg); 28$tester->start(); 29$tester->expectLogNotice( 30 "'user' directive is ignored when FPM is not running as root", 31 'unconfined' 32); 33$tester->expectLogStartNotices(); 34$tester->terminate(); 35$tester->expectLogTerminatingNotices(); 36$tester->close(); 37 38?> 39Done 40--EXPECT-- 41Done 42--CLEAN-- 43<?php 44require_once "tester.inc"; 45FPM\Tester::clean(); 46?> 47