Skip to content

Commit

Permalink
[test] fix tests [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Apr 16, 2024
1 parent 20eec88 commit d66eabf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ext-src/swoole_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ static zend_internal_arg_info *get_arginfo(const char *name, size_t l_name) {
#define SW_HOOK_LIBRARY_FE(name, arg_info) \
ZEND_RAW_FENTRY("swoole_hook_" #name, PHP_FN(swoole_user_func_handler), arg_info, 0)

static SW_THREAD_LOCAL bool runtime_hook_init = false;
static SW_THREAD_LOCAL int runtime_hook_flags = 0;
static bool runtime_hook_init = false;
static int runtime_hook_flags = 0;
static SW_THREAD_LOCAL zend_array *tmp_function_table = nullptr;
static SW_THREAD_LOCAL std::unordered_map<std::string, zend_class_entry *> child_class_entries;

Expand Down Expand Up @@ -265,6 +265,7 @@ void php_swoole_runtime_mshutdown() {
#ifdef SW_USE_CURL
swoole_native_curl_mshutdown();
#endif
PHPCoroutine::disable_hook();
}

static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *portno, int get_err, zend_string **err) {
Expand Down
2 changes: 1 addition & 1 deletion src/server/port.cc
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ int ListenPort::create_socket(Server *server) {
}

#if defined(SW_SUPPORT_DTLS) && defined(HAVE_KQUEUE)
if (ls->is_dtls()) {
if (is_dtls()) {
socket->set_reuse_port();
}
#endif
Expand Down

0 comments on commit d66eabf

Please sign in to comment.