]> granicus.if.org Git - php/commit
Fix #80595: Resetting POSTFIELDS to empty array breaks request
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 15 Jan 2021 13:01:40 +0000 (14:01 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 18 Jan 2021 09:57:56 +0000 (10:57 +0100)
commit38ad37ad435511391e16983794022a8d1e7d6a14
tree55ccefb09ff62d3b51ad04bce031108bd6a7fc89
parent25103c37aa6d7b2da506e35e675177993c200268
Fix #80595: Resetting POSTFIELDS to empty array breaks request

This is mainly to work around https://github.com/curl/curl/issues/6455,
but not building the mime structure for empty hashtables is a general
performance optimization, so we do not restrict it to affected cURL
versions (7.56.0 to 7.75.0).

The minor change to bug79033.phpt is unexpected, but should not matter
in practice.

Closes GH-6606.
NEWS
ext/curl/interface.c
ext/curl/tests/bug79033.phpt
ext/curl/tests/bug80595.phpt [new file with mode: 0644]