Skip to content

Commit 61125df

Browse files
committed
Fixed compile failed with ZTS.
1 parent 6ea79e4 commit 61125df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

swoole_http.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ static int http_request_on_header_value(php_http_parser *parser, const char *at,
8383
static int http_request_on_headers_complete(php_http_parser *parser);
8484
static int http_request_message_complete(php_http_parser *parser);
8585

86-
static void http_client_free(http_client *client TSRMLS_DC);
86+
static void http_client_free(http_client *client);
8787
static void http_request_free(http_client *client TSRMLS_DC);
8888
static http_client* http_client_new(int fd TSRMLS_DC);
8989

@@ -300,7 +300,7 @@ static int http_onReceive(swFactory *factory, swEventData *req)
300300

301301
zval *zrequest;
302302
MAKE_STD_ZVAL(zrequest);
303-
object_init_ex(zrequest, swoole_http_request_class_entry_ptr TSRMLS_CC);
303+
object_init_ex(zrequest, swoole_http_request_class_entry_ptr);
304304

305305
zval *header;
306306
MAKE_STD_ZVAL(header);
@@ -311,7 +311,8 @@ static int http_onReceive(swFactory *factory, swEventData *req)
311311

312312
zval *zresponse;
313313
MAKE_STD_ZVAL(zresponse);
314-
object_init_ex(zresponse, swoole_http_response_class_entry_ptr TSRMLS_CC);
314+
object_init_ex(zresponse, swoole_http_response_class_entry_ptr);
315+
315316
//socket fd
316317
zend_update_property_long(swoole_http_response_class_entry_ptr, zresponse, ZEND_STRL("fd"), fd TSRMLS_CC);
317318

0 commit comments

Comments
 (0)