Skip to content

Commit

Permalink
Fix #3362 (#3365)
Browse files Browse the repository at this point in the history
  • Loading branch information
twose authored Jun 5, 2020
1 parent c91c276 commit b604a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swoole_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2043,8 +2043,8 @@ static int php_swoole_server_dispatch_func(swServer *serv, swConnection *conn, s

*zserv = *((zval *) serv->ptr2);
ZVAL_LONG(zfd, (zend_long) (conn ? conn->session_id : data->info.fd));
ZVAL_LONG(ztype, (zend_long) data->info.type);
if (sw_zend_function_max_num_args(fci_cache->function_handler) > 3)
ZVAL_LONG(ztype, (zend_long) (data ? data->info.type : SW_SERVER_EVENT_CLOSE));
if (data && sw_zend_function_max_num_args(fci_cache->function_handler) > 3)
{
// TODO: reduce memory copy
zdata = &args[3];
Expand Down

0 comments on commit b604a9c

Please sign in to comment.