Bug #80595 [PATCH]: Resetting POSTFIELDS to empty array breaks request

From: Date: Fri, 15 Jan 2021 13:12:59 +0000
Subject: Bug #80595 [PATCH]: Resetting POSTFIELDS to empty array breaks request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231576@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80595&edit=1

 ID:                 80595
 Patch added by:     cmb@php.net
 Reported by:        dav dot tur19 at gmail dot com
 Summary:            Resetting POSTFIELDS to empty array breaks request
 Status:             Verified
 Type:               Bug
 Package:            cURL related
 Operating System:   *
 PHP Version:        7.4
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#231576) next »