mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Drop FIXME in pcntl_signal_dispatch() (#18633)
This commit is contained in:
@@ -1356,7 +1356,6 @@ void pcntl_signal_dispatch(void)
|
||||
while (queue) {
|
||||
if ((handle = zend_hash_index_find(&PCNTL_G(php_signal_table), queue->signo)) != NULL) {
|
||||
if (Z_TYPE_P(handle) != IS_LONG) {
|
||||
ZVAL_NULL(&retval);
|
||||
ZVAL_LONG(¶ms[0], queue->signo);
|
||||
#ifdef HAVE_STRUCT_SIGINFO_T
|
||||
array_init(¶ms[1]);
|
||||
@@ -1366,7 +1365,6 @@ void pcntl_signal_dispatch(void)
|
||||
#endif
|
||||
|
||||
/* Call php signal handler - Note that we do not report errors, and we ignore the return value */
|
||||
/* FIXME: this is probably broken when multiple signals are handled in this while loop (retval) */
|
||||
call_user_function(NULL, NULL, handle, &retval, 2, params);
|
||||
zval_ptr_dtor(&retval);
|
||||
#ifdef HAVE_STRUCT_SIGINFO_T
|
||||
|
||||
Reference in New Issue
Block a user