[php-src] Issue #13557: cURL different behaviour between PHP 8.2.15 and PHP 8.2.16
| From: | VinceT | Date: | Thu, 29 Feb 2024 11:49:03 +0000 |
| Subject: | [php-src] Issue #13557: cURL different behaviour between PHP 8.2.15 and PHP 8.2.16 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246495@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13557
Author: VinceT
### Description
I use cURL and the PostgREST API to get data from a Postgres database. That is OK for retrieveing
records. But when I try to count records, the result is OK using PHP 8.2.15 and KO with PHP 8.2.16.
The error message is :
Failed reading the chunked-encoded stream
The cURL parameters are :
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HEADER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . JWT,
"Prefer: count=exact",
],
CURLOPT_NOBODY => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_URL => "http://localhost:8100/analytique",
CURLOPT_VERBOSE => true,
CURLOPT_STDERR => "../../logs/curl.log"
Pleas find attached the log files for both versions.
[curl_PHP_8_2_16.log](https://github.com/php/php-src/files/14447184/curl_PHP_8_2_16.log)
[curl_PHP_8_2_15.log](https://github.com/php/php-src/files/14447185/curl_PHP_8_2_15.log)
### PHP Version
PHP 8.2.16
### Operating System
Windows 10 22H2