Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions swoole.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ PHP_MINIT_FUNCTION(swoole)
/**
* simple api
*/
SW_REGISTER_LONG_CONSTANT("SWOOLE_SOCK_SYNC", SW_SOCK_SYNC);
SW_REGISTER_LONG_CONSTANT("SWOOLE_SOCK_ASYNC", SW_SOCK_ASYNC);
SW_REGISTER_BOOL_CONSTANT("SWOOLE_SOCK_SYNC", SW_SOCK_SYNC);
SW_REGISTER_BOOL_CONSTANT("SWOOLE_SOCK_ASYNC", SW_SOCK_ASYNC);

SW_REGISTER_LONG_CONSTANT("SWOOLE_SYNC", SW_FLAG_SYNC);
SW_REGISTER_LONG_CONSTANT("SWOOLE_ASYNC", SW_FLAG_ASYNC);
Expand Down
2 changes: 1 addition & 1 deletion swoole_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ swClient* php_swoole_client_new(zval *zobject, char *host, int host_len, int por
static PHP_METHOD(swoole_client, __construct)
{
zend_long type = 0;
zend_long async = 0;
zend_bool async = 0;
char *id = NULL;
size_t len = 0;

Expand Down