Skip to content

Commit 9b13bb1

Browse files
1 parent 4de2ec3 commit 9b13bb1

File tree

87 files changed

+51
-135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+51
-135
lines changed

ext/curl/curl.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3740,6 +3740,7 @@ final class CurlSharePersistentHandle
37403740
public readonly array $options;
37413741
}
37423742

3743+
#[\Deprecated(since: '8.5', message: "as it has no effect since PHP 8.0")]
37433744
function curl_close(CurlHandle $handle): void {}
37443745

37453746
/** @refcount 1 */

ext/curl/curl_arginfo.h

Lines changed: 9 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/curl/tests/bug27023.phpt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ $file = curl_file_create(__DIR__ . '/curl_testdata1.txt', "text/plain", "foo.txt
3333
$params = array('file' => $file);
3434
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
3535
var_dump(curl_exec($ch));
36-
37-
38-
curl_close($ch);
3936
?>
4037
--EXPECTF--
4138
string(%d) "curl_testdata1.txt|application/octet-stream|6"

ext/curl/tests/bug48203.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ curl_setopt($ch, CURLOPT_URL, curl_cli_server_start());
1616
fclose($fp); // <-- premature close of $fp caused a crash!
1717

1818
curl_exec($ch);
19-
curl_close($ch);
2019

2120
echo "Ok\n";
2221

ext/curl/tests/bug48207.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ try {
4343
}
4444

4545
curl_exec($ch);
46-
curl_close($ch);
4746
is_file($tempfile) and @unlink($tempfile);
4847
isset($tempname) and is_file($tempname) and @unlink($tempname);
4948
?>

ext/curl/tests/bug54798-unix.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ function checkForClosedFilePointer($host, $curl_option, $description) {
3434

3535
curl_exec($ch);
3636

37-
curl_close($ch);
38-
3937
echo "Ok for $description\n";
4038
}
4139

ext/curl/tests/bug54798.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ function checkForClosedFilePointer($host, $curl_option, $description) {
2828

2929
curl_exec($ch);
3030

31-
curl_close($ch);
32-
3331
echo "Ok for $description\n";
3432
}
3533

ext/curl/tests/bug55767.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ curl
2020
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
2121

2222
$curl_content = curl_exec($ch);
23-
curl_close($ch);
2423

2524
var_dump( $curl_content );
2625
?>

ext/curl/tests/bug61948-unix.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ open_basedir="/tmp"
1414
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, ""));
1515
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/foo"));
1616
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "/xxx/bar"));
17-
curl_close($ch);
1817
?>
1918
--EXPECTF--
2019
bool(true)

ext/curl/tests/bug61948.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ curl
1313
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, ""));
1414
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "$base_dir/foo"));
1515
var_dump(curl_setopt($ch, CURLOPT_COOKIEFILE, "c:/xxx/bar"));
16-
curl_close($ch);
1716
?>
1817
--CLEAN--
1918
<?php

0 commit comments

Comments
 (0)