-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathphp_swoole.stub.php
123 lines (93 loc) · 2.06 KB
/
php_swoole.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
113
114
115
116
117
118
119
120
121
122
123
<?php
function swoole_version(): string
{
}
function swoole_cpu_num(): int
{
}
function swoole_last_error(): int
{
}
function swoole_async_dns_lookup_coro(mixed $domain_name, float $timeout = 60, int $type = AF_INET): string|false
{
}
function swoole_async_set(array $settings): void
{
}
function swoole_coroutine_create(callable $func, mixed ...$params): int|false
{
}
function swoole_coroutine_defer(callable $callback): void
{
}
function swoole_coroutine_socketpair(int $domain, int $type, int $protocol): array|false
{
}
function swoole_test_kernel_coroutine(int $count = 100, float $sleep_time = 1.0): void
{
}
function swoole_client_select(array &$read_array, array &$write_array, array &$error_array, float $timeout = 0.5): false|int
{
}
function swoole_set_process_name(string $process_name): bool
{
}
function swoole_get_local_ip(): array
{
}
function swoole_get_local_mac(): array
{
}
function swoole_strerror(int $errno, int $error_type = SWOOLE_STRERROR_SYSTEM): string
{
}
function swoole_errno(): int
{
}
function swoole_clear_error(): void
{
}
function swoole_error_log(int $level, string $msg): void
{
}
function swoole_error_log_ex(int $level, int $error, string $msg): void
{
}
function swoole_ignore_error(int $error): void
{
}
function swoole_hashcode(string $data, int $type = 0): false|int
{
}
function swoole_mime_type_add(string $suffix, string $mime_type): bool
{
}
function swoole_mime_type_set(string $suffix, string $mime_type): void
{
}
function swoole_mime_type_delete(string $suffix): bool
{
}
function swoole_mime_type_get(string $filename): string
{
}
function swoole_mime_type_exists(string $filename): bool
{
}
function swoole_mime_type_list(): array
{
}
function swoole_clear_dns_cache(): void
{
}
function swoole_substr_unserialize(string $str, int $offset, int $length = 0, array $options = []): mixed
{
}
#ifdef SW_USE_JSON
function swoole_substr_json_decode(string $str, int $offset, int $length = 0, bool $associative = false, int $depth = 512, int $flags = 0): mixed
{
}
#endif
function swoole_internal_call_user_shutdown_begin(): bool
{
}