summaryrefslogtreecommitdiff
path: root/ext/curl/curl.stub.php
blob: 0ed4e2d1825d83a505d3792e07af967acf83dca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php

/** @generate-class-entries */

/** @strict-properties */
final class CurlHandle
{
}

/** @strict-properties */
final class CurlMultiHandle
{
}

/** @strict-properties */
final class CurlShareHandle
{
}

function curl_close(CurlHandle $handle): void {}

function curl_copy_handle(CurlHandle $handle): CurlHandle|false {}

function curl_errno(CurlHandle $handle): int {}

function curl_error(CurlHandle $handle): string {}

#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */
function curl_escape(CurlHandle $handle, string $string): string|false {}

function curl_unescape(CurlHandle $handle, string $string): string|false {}

function curl_multi_setopt(CurlMultiHandle $multi_handle, int $option, mixed $value): bool {}

#endif

function curl_exec(CurlHandle $handle): string|bool {}

function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null): CURLFile {}

function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed {}

function curl_init(?string $url = null): CurlHandle|false {}

function curl_multi_add_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int {}

function curl_multi_close(CurlMultiHandle $multi_handle): void {}

function curl_multi_errno(CurlMultiHandle $multi_handle): int {}

/** @param int $still_running */
function curl_multi_exec(CurlMultiHandle $multi_handle, &$still_running): int {}

function curl_multi_getcontent(CurlHandle $handle): ?string {}

/** @param int $queued_messages */
function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {}

function curl_multi_init(): CurlMultiHandle {}

function curl_multi_remove_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int {}

function curl_multi_select(CurlMultiHandle $multi_handle, float $timeout = 1.0): int {}

function curl_multi_strerror(int $error_code): ?string {}

#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */
function curl_pause(CurlHandle $handle, int $flags): int {}
#endif

function curl_reset(CurlHandle $handle): void {}

function curl_setopt_array(CurlHandle $handle, array $options): bool {}

function curl_setopt(CurlHandle $handle, int $option, mixed $value): bool {}

function curl_share_close(CurlShareHandle $share_handle): void {}

function curl_share_errno(CurlShareHandle $share_handle): int {}

function curl_share_init(): CurlShareHandle {}

function curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool {}

function curl_share_strerror(int $error_code): ?string {}

function curl_strerror(int $error_code): ?string {}

function curl_version(): array|false {}