Skip to content

Commit 0c948ee

Browse files
committed
Fix compilation warning (PHP8)
1 parent e9cbdea commit 0c948ee

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

thirdparty/php/curl/interface.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static zend_object *curl_clone_obj(zend_object *object) {
369369

370370
clone_object = curl_create_object(curl_ce);
371371
clone_ch = curl_from_obj(clone_object);
372-
init_curl_handle(clone_ch);
372+
swoole_curl_init_handle(clone_ch);
373373

374374
ch = curl_from_obj(object);
375375
cp = curl_easy_duphandle(ch->cp);
@@ -863,7 +863,7 @@ php_curl *init_curl_handle_into_zval(zval *curl) {
863863
object_init_ex(curl, swoole_coroutine_curl_handle_ce);
864864
ch = Z_CURL_P(curl);
865865

866-
init_curl_handle(ch);
866+
swoole_curl_init_handle(ch);
867867

868868
return ch;
869869
}

thirdparty/php/curl/multi.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static int _php_server_push_callback(
509509

510510
parent = Z_CURL_P(pz_parent_ch);
511511

512-
ch = init_curl_handle_into_zval(&pz_ch);
512+
ch = swoole_curl_init_handle_into_zval(&pz_ch);
513513
ch->cp = easy;
514514
swoole_setup_easy_copy_handlers(ch, parent);
515515

0 commit comments

Comments
 (0)