xref: /PHP-8.3/sapi/fpm/tests/setsofib.phpt (revision 5174ee23)
1--TEST--
2FPM: listen.setfib`
3--SKIPIF--
4<?php
5include "skipif.inc";
6
7if (!str_contains(PHP_OS, 'FreeBSD')) {
8    die('skipped supported only on FreeBSD');
9}
10?>
11--FILE--
12<?php
13
14require_once "tester.inc";
15
16$cfg = <<<EOT
17[global]
18error_log = {{FILE:LOG}}
19pid = {{FILE:PID}}
20[setfib]
21listen = {{ADDR}}
22listen.setfib = 68000
23pm = dynamic
24pm.max_children = 5
25pm.start_servers = 2
26pm.min_spare_servers = 1
27pm.max_spare_servers = 3
28EOT;
29
30$tester = new FPM\Tester($cfg);
31$tester->start();
32$tester->expectLogError('Invalid routing table id 68000, max is 1');
33$tester->terminate();
34$tester->close();
35
36?>
37Done
38--EXPECT--
39Done
40--CLEAN--
41<?php
42require_once "tester.inc";
43FPM\Tester::clean();
44?>
45