mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
![]() The ctrl_handler is never destroyed. We have to destroy it at request end so we avoid leaking it and also avoid keeping a reference to previous request memory in a next request. The latter can result in a crash and can be demonstrated with this script and `--repeat 2`: ```php class Test { public function set() { sapi_windows_set_ctrl_handler(self::cb(...)); } public function cb() { } } $test = new Test; $test->set(); sleep(3); ``` When you hit CTRL+C in the second request you can crash. This patch resolves both the leak and crash by destroying the ctrl_handler after a request. Closes GH-18231. |
||
---|---|---|
.. | ||
tests | ||
cli.h | ||
cli_win32.c | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
generate_mime_type_map.php | ||
Makefile.frag | ||
mime_type_map.h | ||
php.1.in | ||
php_cli.c | ||
php_cli_process_title.c | ||
php_cli_process_title.h | ||
php_cli_process_title.stub.php | ||
php_cli_process_title_arginfo.h | ||
php_cli_server.c | ||
php_cli_server.h | ||
php_cli_server.stub.php | ||
php_cli_server_arginfo.h | ||
php_http_parser.c | ||
php_http_parser.h | ||
ps_title.c | ||
ps_title.h |