File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1000,6 +1000,7 @@ PHP_RINIT_FUNCTION(swoole) {
1000
1000
SIGG (check) = 0 ;
1001
1001
#endif
1002
1002
1003
+ php_swoole_coroutine_rinit ();
1003
1004
php_swoole_runtime_rinit ();
1004
1005
1005
1006
SWOOLE_G (req_status) = PHP_SWOOLE_RINIT_END;
Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ void php_swoole_redis_server_minit(int module_number);
252
252
* RINIT
253
253
* ==============================================================
254
254
*/
255
+ void php_swoole_coroutine_rinit ();
255
256
void php_swoole_runtime_rinit ();
256
257
257
258
/**
Original file line number Diff line number Diff line change @@ -877,7 +877,9 @@ void php_swoole_coroutine_minit(int module_number) {
877
877
878
878
SW_REGISTER_LONG_CONSTANT (" SWOOLE_EXIT_IN_COROUTINE" , SW_EXIT_IN_COROUTINE);
879
879
SW_REGISTER_LONG_CONSTANT (" SWOOLE_EXIT_IN_SERVER" , SW_EXIT_IN_SERVER);
880
+ }
880
881
882
+ void php_swoole_coroutine_rinit () {
881
883
if (SWOOLE_G (cli)) {
882
884
ori_exit_handler = zend_get_user_opcode_handler (ZEND_EXIT);
883
885
zend_set_user_opcode_handler (ZEND_EXIT, coro_exit_handler);
You can’t perform that action at this time.
0 commit comments