Bug #80595 [Ver->Csd]: Resetting POSTFIELDS to empty array breaks request
Edit report at https://bugs.php.net/bug.php?id=80595&edit=1
ID: 80595
Updated by: cmb@php.net
Reported by: dav dot tur19 at gmail dot com
Summary: Resetting POSTFIELDS to empty array breaks request
-Status: Verified
+Status: Closed
Type: Bug
Package: cURL related
Operating System: *
PHP Version: 7.4
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=38ad37ad435511391e16983794022a8d1e7d6a14
Log: Fix #80595: Resetting POSTFIELDS to empty array breaks request
Previous Comments:
------------------------------------------------------------------------
[2021-01-15 13:12:59] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #80595: Resetting POSTFIELDS to empty array breaks request
On GitHub: https://github.com/php/php-src/pull/6606
Patch: https://github.com/php/php-src/pull/6606.patch
------------------------------------------------------------------------
[2021-01-11 16:11:02] cmb@php.net
> It's the same bug as https://bugs.php.net/bug.php?id=79033, [â¦]
Well, actually this issue is caused by the fix for that bug. I
just send an email to the cURL mailing list[1] for clarification.
[1] <https://curl.se/mail/lib-2021-01/0066.html>
------------------------------------------------------------------------
[2021-01-06 00:25:18] dav dot tur19 at gmail dot com
Description:
------------
It's the same bug as https://bugs.php.net/bug.php?id=79033, only it
occurs on the second request by changing the CURLOPT_POSTFIELDS
Tested on these versions:
It fails on:
Windows 10:
PHP 7.4.7 (cli) (built: Jun 9 2020 13:34:30) ( NTS Visual C++ 2017 x64 )
PHP 7.4.14 (cli) (built: Jan 5 2021 15:12:29) ( ZTS Visual C++ 2017 x64 )
PHP 8.0.0 (cli) (built: Nov 24 2020 22:02:57) ( ZTS Visual C++ 2019 x64 )
Docker linux arm64 (image php:7-fpm):
PHP 7.4.13 (cli) (built: Dec 11 2020 10:10:38) ( NTS )
Works fine on:
WSL (ubuntu on win10):
PHP 7.2.24-0ubuntu0.18.04.7 (cli) (built: Oct 7 2020 15:24:25) ( NTS )
Test script:
---------------
https://pastebin.com/RghzAFCV
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80595&edit=1
Thread (5 messages)