]> granicus.if.org Git - php/commit
Fix #79033: Curl timeout error with specific url and post
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 28 Dec 2019 09:47:03 +0000 (10:47 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 28 Dec 2019 09:47:03 +0000 (10:47 +0100)
commitc47b18a222ceb1d78810d2822170cbf6e110a98c
tree5602e99e79caf706f5b9e8777a896e5758545cd5
parent27bb3289aceb5225e4dd39f082a48823756a8190
Fix #79033: Curl timeout error with specific url and post

We must not set an empty mime structure as `CURLOPT_MIMEPOST`; instead
we set it to `NULL` if `CURLOPT_POSTFIELDS` has been set to an empty
array.
NEWS
ext/curl/interface.c
ext/curl/tests/bug79033.phpt [new file with mode: 0644]