We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 784b745 + 43bc53a commit ea79560Copy full SHA for ea79560
NEWS
@@ -24,6 +24,10 @@ PHP NEWS
24
- DOM:
25
. Fixed bug GH-14343 (Memory leak in xml and dom). (nielsdos)
26
27
+- FPM:
28
+ . Fixed bug GH-14037 (PHP-FPM ping.path and ping.response config vars are
29
+ ignored in status pool). (Wilhansen Li, Pierrick Charron)
30
+
31
- GD:
32
. Fix parameter numbers for imagecolorset(). (Giovanni Giacobbi)
33
sapi/fpm/fpm/fpm_conf.c
@@ -763,6 +763,8 @@ static int fpm_worker_pool_shared_status_alloc(struct fpm_worker_pool_s *shared_
763
FPM_WPC_STR_CP(config, shared_config, user);
764
FPM_WPC_STR_CP(config, shared_config, group);
765
FPM_WPC_STR_CP(config, shared_config, pm_status_path);
766
+ FPM_WPC_STR_CP(config, shared_config, ping_path);
767
+ FPM_WPC_STR_CP(config, shared_config, ping_response);
768
769
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_values, (char *)config + WPO(php_values));
770
fpm_conf_apply_kv_array_to_kv_array(shared_config->php_admin_values, (char *)config + WPO(php_admin_values));
sapi/fpm/tests/status-ping.phpt
@@ -0,0 +1,40 @@
1
+--TEST--
2
+FPM: Ping on the status invisible pool
3
+--SKIPIF--
4
+<?php include "skipif.inc"; ?>
5
+--FILE--
6
+<?php
7
8
+require_once "tester.inc";
9
10
+$cfg = <<<EOT
11
+[global]
12
+error_log = {{FILE:LOG}}
13
+[unconfined]
14
+listen = {{ADDR}}
15
+pm = static
16
+pm.max_children = 1
17
+pm.status_listen = {{ADDR[status]}}
18
+pm.status_path = /status
19
+ping.path = /ping
20
+ping.response = pong
21
+EOT;
22
23
+$tester = new FPM\Tester($cfg);
+$tester->start();
+$tester->expectLogStartNotices();
+$tester->ping('{{ADDR[status]}}');
+usleep(100000);
+$tester->terminate();
+$tester->expectLogTerminatingNotices();
+$tester->close();
+?>
+Done
34
+--EXPECT--
35
36
+--CLEAN--
37
38
39
+FPM\Tester::clean();
40
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments