We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0d321e commit 51158bbCopy full SHA for 51158bb
1 file changed
win32/signal.c
@@ -131,10 +131,7 @@ PHP_FUNCTION(sapi_windows_set_ctrl_handler)
131
if (!ZEND_FCI_INITIALIZED(fci)) {
132
zval_ptr_dtor(&ctrl_handler);
133
ZVAL_UNDEF(&ctrl_handler);
134
- if (!SetConsoleCtrlHandler(NULL, add)) {
135
- RETURN_FALSE;
136
- }
137
- RETURN_TRUE;
+ RETURN_BOOL(SetConsoleCtrlHandler(NULL, add));
138
}
139
140
if (!SetConsoleCtrlHandler(NULL, FALSE) || !SetConsoleCtrlHandler(php_win32_signal_system_ctrl_handler, add)) {
0 commit comments