mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
1b48a5c802
This happens because config test does not shutdown SAPI. In addition this commit also fixes few failures when running FPM tests under root. Closes GH-10296
40 lines
598 B
PHP
40 lines
598 B
PHP
--TEST--
|
|
FPM: bug68591 - config test group existence
|
|
--SKIPIF--
|
|
<?php
|
|
include "skipif.inc";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once "tester.inc";
|
|
|
|
$cfg = <<<EOT
|
|
[global]
|
|
error_log = {{FILE:LOG}}
|
|
[unconfined]
|
|
listen = {{ADDR:UDS}}
|
|
user = root
|
|
group = 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 gid for group 'aaaaaa'
|
|
ERROR: FPM initialization failed
|
|
Done
|
|
--CLEAN--
|
|
<?php
|
|
require_once "tester.inc";
|
|
FPM\Tester::clean();
|
|
?>
|