mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
21d8980d27
Addition check in fpm config test to verify existence of user, group, listen.owner and listen.group. Closes GH-10165
39 lines
583 B
PHP
39 lines
583 B
PHP
--TEST--
|
|
FPM: bug68591 - config test user existence
|
|
--SKIPIF--
|
|
<?php
|
|
include "skipif.inc";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once "tester.inc";
|
|
|
|
$cfg = <<<EOT
|
|
[global]
|
|
error_log = {{FILE:LOG}}
|
|
[unconfined]
|
|
listen = {{ADDR:UDS}}
|
|
user = aaaaaa
|
|
pm = dynamic
|
|
pm.max_children = 5
|
|
pm.start_servers = 2
|
|
pm.min_spare_servers = 1
|
|
pm.max_spare_servers = 3
|
|
EOT;
|
|
|
|
$tester = new FPM\Tester($cfg);
|
|
$tester->testConfig();
|
|
|
|
?>
|
|
Done
|
|
--EXPECT--
|
|
ERROR: [pool unconfined] cannot get uid for user 'aaaaaa'
|
|
ERROR: FPM initialization failed
|
|
Done
|
|
--CLEAN--
|
|
<?php
|
|
require_once "tester.inc";
|
|
FPM\Tester::clean();
|
|
?>
|