Skip to content

Commit 9d664cb

Browse files
committed
Fix CURLOPT_POST parameter
1 parent ef38d22 commit 9d664cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/curl/tests/curl_readfunction_throws_abort.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $host = curl_cli_server_start();
1616
$ch = curl_init("{$host}/get.inc");
1717

1818
$file = new CURLFile(__DIR__ . '/curl_testdata1.txt');
19-
curl_setopt($ch, CURLOPT_POST, ['file' => $file]);
19+
curl_setopt($ch, CURLOPT_POST, 1);
2020

2121
curl_setopt($ch, CURLOPT_READFUNCTION,
2222
function (): int {

0 commit comments

Comments
 (0)