@@ -90,6 +90,7 @@ static void pcntl_siginfo_to_zval(int, siginfo_t*, zval*);
90
90
static void pcntl_signal_handler (int );
91
91
#endif
92
92
static void pcntl_signal_dispatch (void );
93
+ static void pcntl_signal_dispatch_tick_function (int dummy_int , void * dummy_pointer );
93
94
static void pcntl_interrupt_function (zend_execute_data * execute_data );
94
95
95
96
void php_register_signal_constants (INIT_FUNC_ARGS )
@@ -424,7 +425,7 @@ static PHP_GINIT_FUNCTION(pcntl)
424
425
425
426
PHP_RINIT_FUNCTION (pcntl )
426
427
{
427
- php_add_tick_function (pcntl_signal_dispatch , NULL );
428
+ php_add_tick_function (pcntl_signal_dispatch_tick_function , NULL );
428
429
zend_hash_init (& PCNTL_G (php_signal_table ), 16 , NULL , ZVAL_PTR_DTOR , 0 );
429
430
PCNTL_G (head ) = PCNTL_G (tail ) = PCNTL_G (spares ) = NULL ;
430
431
PCNTL_G (async_signals ) = 0 ;
@@ -1385,6 +1386,11 @@ void pcntl_signal_dispatch()
1385
1386
sigprocmask (SIG_SETMASK , & old_mask , NULL );
1386
1387
}
1387
1388
1389
+ void pcntl_signal_dispatch_tick_function (int dummy_int , void * dummy_pointer )
1390
+ {
1391
+ return pcntl_signal_dispatch ();
1392
+ }
1393
+
1388
1394
/* {{{ Enable/disable asynchronous signal handling and return the old setting. */
1389
1395
PHP_FUNCTION (pcntl_async_signals )
1390
1396
{
0 commit comments