From b3e583c933ac65cc23b096da046b3cdbd8cdf800 Mon Sep 17 00:00:00 2001 From: Bruce Dou Date: Sun, 29 Dec 2024 22:12:35 +0000 Subject: [PATCH] wip --- ext-src/php_swoole_private.h | 2 +- ext-src/swoole_coroutine.cc | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ext-src/php_swoole_private.h b/ext-src/php_swoole_private.h index b1dc3546c..b1a7409db 100644 --- a/ext-src/php_swoole_private.h +++ b/ext-src/php_swoole_private.h @@ -664,7 +664,7 @@ static sw_inline int sw_zend_register_class_alias(const char *name, size_t name_ zend_string *_interned_name = zend_new_interned_string(_name); - return zend_register_class_alias_ex(ZSTR_VAL(_interned_name), ZSTR_LEN(_interned_name), ce); + return zend_register_class_alias_ex(ZSTR_VAL(_interned_name), ZSTR_LEN(_interned_name), ce, 1); } static sw_inline zend_object *sw_zend_create_object(zend_class_entry *ce, zend_object_handlers *handlers) { diff --git a/ext-src/swoole_coroutine.cc b/ext-src/swoole_coroutine.cc index 61377cc0c..a18914917 100644 --- a/ext-src/swoole_coroutine.cc +++ b/ext-src/swoole_coroutine.cc @@ -62,8 +62,6 @@ bool PHPCoroutine::interrupt_thread_running = false; // extern void php_swoole_load_library(); -static zend_atomic_bool *zend_vm_interrupt = nullptr; - static user_opcode_handler_t ori_exit_handler = nullptr; static user_opcode_handler_t ori_begin_silence_handler = nullptr; static user_opcode_handler_t ori_end_silence_handler = nullptr;