mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Merge branch 'PHP-7.2' into PHP-7.3
This commit is contained in:
commit
0cad701374
1
NEWS
1
NEWS
@ -7,6 +7,7 @@ PHP NEWS
|
||||
Spagnoletti)
|
||||
|
||||
- FPM:
|
||||
. Fixed bug #77934 (php-fpm kill -USR2 not working). (Jakub Zelenka)
|
||||
. Fixed bug #77921 (static.php.net doesn't work anymore). (Peter Kokot)
|
||||
|
||||
- GD:
|
||||
|
@ -142,7 +142,7 @@ static void sig_soft_quit(int signo) /* {{{ */
|
||||
int saved_errno = errno;
|
||||
|
||||
/* closing fastcgi listening socket will force fcgi_accept() exit immediately */
|
||||
close(0);
|
||||
close(fpm_globals.listening_socket);
|
||||
if (0 > socket(AF_UNIX, SOCK_STREAM, 0)) {
|
||||
zlog(ZLOG_WARNING, "failed to create a new socket");
|
||||
}
|
||||
|
44
sapi/fpm/tests/bug77934-reload-process-control.phpt
Normal file
44
sapi/fpm/tests/bug77934-reload-process-control.phpt
Normal file
@ -0,0 +1,44 @@
|
||||
--TEST--
|
||||
FPM: bug77934 - php-fpm kill -USR2 not working
|
||||
--SKIPIF--
|
||||
<?php include "skipif.inc"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once "tester.inc";
|
||||
|
||||
$cfg = <<<EOT
|
||||
[global]
|
||||
error_log = {{FILE:LOG}}
|
||||
pid = {{FILE:PID}}
|
||||
process_control_timeout=20
|
||||
[unconfined]
|
||||
listen = {{ADDR}}
|
||||
pm = dynamic
|
||||
pm.max_children = 5
|
||||
pm.start_servers = 1
|
||||
pm.min_spare_servers = 1
|
||||
pm.max_spare_servers = 1
|
||||
EOT;
|
||||
|
||||
$tester = new FPM\Tester($cfg);
|
||||
$tester->start();
|
||||
$tester->expectLogStartNotices();
|
||||
$tester->signal('USR2');
|
||||
$tester->expectLogNotice('Reloading in progress ...');
|
||||
$tester->expectLogNotice('reloading: .*');
|
||||
$tester->expectLogNotice('using inherited socket fd=\d+, "127.0.0.1:\d+"');
|
||||
$tester->expectLogStartNotices();
|
||||
$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