mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Merge branch 'PHP-8.3'
This commit is contained in:
commit
c33f58867e
@ -763,6 +763,8 @@ static int fpm_worker_pool_shared_status_alloc(struct fpm_worker_pool_s *shared_
|
||||
FPM_WPC_STR_CP(config, shared_config, user);
|
||||
FPM_WPC_STR_CP(config, shared_config, group);
|
||||
FPM_WPC_STR_CP(config, shared_config, pm_status_path);
|
||||
FPM_WPC_STR_CP(config, shared_config, ping_path);
|
||||
FPM_WPC_STR_CP(config, shared_config, ping_response);
|
||||
|
||||
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_values, (char *)config + WPO(php_values));
|
||||
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_admin_values, (char *)config + WPO(php_admin_values));
|
||||
|
40
sapi/fpm/tests/status-ping.phpt
Normal file
40
sapi/fpm/tests/status-ping.phpt
Normal file
@ -0,0 +1,40 @@
|
||||
--TEST--
|
||||
FPM: Ping on the status invisible pool
|
||||
--SKIPIF--
|
||||
<?php include "skipif.inc"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once "tester.inc";
|
||||
|
||||
$cfg = <<<EOT
|
||||
[global]
|
||||
error_log = {{FILE:LOG}}
|
||||
[unconfined]
|
||||
listen = {{ADDR}}
|
||||
pm = static
|
||||
pm.max_children = 1
|
||||
pm.status_listen = {{ADDR[status]}}
|
||||
pm.status_path = /status
|
||||
ping.path = /ping
|
||||
ping.response = pong
|
||||
EOT;
|
||||
|
||||
$tester = new FPM\Tester($cfg);
|
||||
$tester->start();
|
||||
$tester->expectLogStartNotices();
|
||||
$tester->ping('{{ADDR[status]}}');
|
||||
usleep(100000);
|
||||
$tester->terminate();
|
||||
$tester->expectLogTerminatingNotices();
|
||||
$tester->close();
|
||||
|
||||
?>
|
||||
Done
|
||||
--EXPECT--
|
||||
Done
|
||||
--CLEAN--
|
||||
<?php
|
||||
require_once "tester.inc";
|
||||
FPM\Tester::clean();
|
||||
?>
|
Loading…
Reference in New Issue
Block a user