From: Christoph M. Becker Date: Sat, 1 Jun 2019 07:08:51 +0000 (+0200) Subject: Fix ZTS issue regarding new Windows CTRL handling API X-Git-Tag: php-7.4.0alpha1~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=637d8677b3b5f523265ae4c9adc27344c1c70ed0;p=php Fix ZTS issue regarding new Windows CTRL handling API php_win32_signal_system_ctrl_handler() is called from a kernel thread, so the former initialization of `vm_interrupt_flag` has no effect, since it is defined as thread-local. This is, however, not necessary, since the CTRL signal handling is supposed to work only for the main thread anyway. We therefore change `vm_interrupt_flag` and the related variables to true globals. This also allows us to unmark the respective test case as XFAIL. Furthermore, `vm_interrupt_flag` is declared as `zend_bool *`, so we better treat it such. --- diff --git a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt index 083ed8fd0c..a5cb3ef03e 100644 --- a/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt +++ b/sapi/cli/tests/sapi_windows_set_ctrl_handler.phpt @@ -8,8 +8,6 @@ include "skipinf.inc"; if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') die("skip this test is for Windows platforms only"); ?> ---XFAIL-- -Fails on AppVeyor --FILE--