forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurl.stub.php
112 lines (76 loc) · 2.86 KB
/
curl.stub.php
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/** @generate-class-entries */
/**
* @strict-properties
* @not-serializable
*/
final class CurlHandle
{
}
/**
* @strict-properties
* @not-serializable
*/
final class CurlMultiHandle
{
}
/**
* @strict-properties
* @not-serializable
*/
final class CurlShareHandle
{
}
function curl_close(CurlHandle $handle): void {}
/** @refcount 1 */
function curl_copy_handle(CurlHandle $handle): CurlHandle|false {}
function curl_errno(CurlHandle $handle): int {}
/** @refcount 1 */
function curl_error(CurlHandle $handle): string {}
/** @refcount 1 */
function curl_escape(CurlHandle $handle, string $string): string|false {}
/** @refcount 1 */
function curl_unescape(CurlHandle $handle, string $string): string|false {}
function curl_multi_setopt(CurlMultiHandle $multi_handle, int $option, mixed $value): bool {}
function curl_exec(CurlHandle $handle): string|bool {}
/** @refcount 1 */
function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null): CURLFile {}
function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed {}
/** @refcount 1 */
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
* @return array<string, int|object>|false
* @refcount 1
*/
function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {}
/** @refcount 1 */
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 {}
/** @refcount 1 */
function curl_multi_strerror(int $error_code): ?string {}
function curl_pause(CurlHandle $handle, int $flags): int {}
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 {}
/** @refcount 1 */
function curl_share_init(): CurlShareHandle {}
function curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool {}
/** @refcount 1 */
function curl_share_strerror(int $error_code): ?string {}
/** @refcount 1 */
function curl_strerror(int $error_code): ?string {}
/**
* @return array<string, int|string|array>|false
* @refcount 1
*/
function curl_version(): array|false {}