Merge branch 'PHP-8.4'

* PHP-8.4:
  Fix GH-16723: CURLMOPT_PUSHFUNCTION issues
This commit is contained in:
Christoph M. Becker 2024-11-09 12:44:16 +01:00
commit 9ebbe1e3f3
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
2 changed files with 4 additions and 3 deletions

View file

@ -1283,13 +1283,13 @@ void _php_setup_easy_copy_handlers(php_curl *ch, php_curl *source)
ch->handlers.read->res = source->handlers.read->res; ch->handlers.read->res = source->handlers.read->res;
if (ZEND_FCC_INITIALIZED(source->handlers.read->fcc)) { if (ZEND_FCC_INITIALIZED(source->handlers.read->fcc)) {
zend_fcc_dup(&source->handlers.read->fcc, &source->handlers.read->fcc); zend_fcc_dup(&ch->handlers.read->fcc, &source->handlers.read->fcc);
} }
if (ZEND_FCC_INITIALIZED(source->handlers.write->fcc)) { if (ZEND_FCC_INITIALIZED(source->handlers.write->fcc)) {
zend_fcc_dup(&source->handlers.write->fcc, &source->handlers.write->fcc); zend_fcc_dup(&ch->handlers.write->fcc, &source->handlers.write->fcc);
} }
if (ZEND_FCC_INITIALIZED(source->handlers.write_header->fcc)) { if (ZEND_FCC_INITIALIZED(source->handlers.write_header->fcc)) {
zend_fcc_dup(&source->handlers.write_header->fcc, &source->handlers.write_header->fcc); zend_fcc_dup(&ch->handlers.write_header->fcc, &source->handlers.write_header->fcc);
} }
curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str); curl_easy_setopt(ch->cp, CURLOPT_ERRORBUFFER, ch->err.str);

View file

@ -60,6 +60,7 @@ sort($responses);
print_r($responses); print_r($responses);
?> ?>
--EXPECT-- --EXPECT--
Trampoline for trampoline
Array Array
( (
[0] => main response [0] => main response