Skip to content

Commit 7616655

Browse files
committed
Fixed #85
1 parent 3f7c3ca commit 7616655

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

swoole.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,9 +1182,9 @@ PHP_FUNCTION(swoole_server_handler)
11821182
}
11831183
if (ret < 0)
11841184
{
1185-
php_error_docref(NULL TSRMLS_CC, E_ERROR, "swoole_server_handler: unkown handler[%s].", ha_name);
1185+
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unknown event types[%s]", ha_name);
11861186
}
1187-
ZVAL_BOOL(return_value, ret);
1187+
SW_CHECK_RETURN(ret);
11881188
}
11891189

11901190
PHP_FUNCTION(swoole_server_on)
@@ -1247,9 +1247,9 @@ PHP_FUNCTION(swoole_server_on)
12471247
}
12481248
if (ret < 0)
12491249
{
1250-
php_error_docref(NULL TSRMLS_CC, E_ERROR, "swoole_server_on: unkown handler[%s].", ha_name);
1250+
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Unknown event types[%s]", ha_name);
12511251
}
1252-
ZVAL_BOOL(return_value, ret);
1252+
SW_CHECK_RETURN(ret);
12531253
}
12541254

12551255
PHP_FUNCTION(swoole_server_close)

0 commit comments

Comments
 (0)