Bug #80595 [NEW]: Curl fail with specific url and post

From: Date: Wed, 06 Jan 2021 00:25:18 +0000
Subject: Bug #80595 [NEW]: Curl fail with specific url and post
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231384@lists.php.net to get a copy of this message
From:             dav dot tur19 at gmail dot com
Operating system: Win/Linux
PHP version:      8.0.0
Package:          cURL related
Bug Type:         Bug
Bug description:Curl fail with specific url and post

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 bug report at https://bugs.php.net/bug.php?id=80595&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80595&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80595&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80595&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80595&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80595&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80595&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80595&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80595&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80595&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80595&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80595&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80595&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80595&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80595&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80595&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80595&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80595&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#231384) next »