mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Merge branch 'PHP-8.4'
* PHP-8.4: Fix GH-16723: CURLMOPT_PUSHFUNCTION issues
This commit is contained in:
commit
9ebbe1e3f3
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue