1<?php 2 3/** @generate-function-entries */ 4 5final class CurlHandle 6{ 7} 8 9final class CurlMultiHandle 10{ 11} 12 13final class CurlShareHandle 14{ 15} 16 17function curl_close(CurlHandle $handle): void {} 18 19function curl_copy_handle(CurlHandle $handle): CurlHandle|false {} 20 21function curl_errno(CurlHandle $handle): int {} 22 23function curl_error(CurlHandle $handle): string {} 24 25#if LIBCURL_VERSION_NUM >= 0x070f04 /* 7.15.4 */ 26function curl_escape(CurlHandle $handle, string $string): string|false {} 27 28function curl_unescape(CurlHandle $handle, string $string): string|false {} 29 30function curl_multi_setopt(CurlMultiHandle $multi_handle, int $option, mixed $value): bool {} 31 32#endif 33 34function curl_exec(CurlHandle $handle): string|bool {} 35 36function curl_file_create(string $filename, ?string $mime_type = null, ?string $posted_filename = null): CURLFile {} 37 38function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed {} 39 40function curl_init(?string $url = null): CurlHandle|false {} 41 42function curl_multi_add_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int {} 43 44function curl_multi_close(CurlMultiHandle $multi_handle): void {} 45 46function curl_multi_errno(CurlMultiHandle $multi_handle): int {} 47 48/** @param int $still_running */ 49function curl_multi_exec(CurlMultiHandle $multi_handle, &$still_running): int {} 50 51function curl_multi_getcontent(CurlHandle $handle): ?string {} 52 53/** @param int $queued_messages */ 54function curl_multi_info_read(CurlMultiHandle $multi_handle, &$queued_messages = null): array|false {} 55 56function curl_multi_init(): CurlMultiHandle {} 57 58function curl_multi_remove_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int {} 59 60function curl_multi_select(CurlMultiHandle $multi_handle, float $timeout = 1.0): int {} 61 62function curl_multi_strerror(int $error_code): ?string {} 63 64#if LIBCURL_VERSION_NUM >= 0x071200 /* 7.18.0 */ 65function curl_pause(CurlHandle $handle, int $flags): int {} 66#endif 67 68function curl_reset(CurlHandle $handle): void {} 69 70function curl_setopt_array(CurlHandle $handle, array $options): bool {} 71 72function curl_setopt(CurlHandle $handle, int $option, mixed $value): bool {} 73 74function curl_share_close(CurlShareHandle $share_handle): void {} 75 76function curl_share_errno(CurlShareHandle $share_handle): int {} 77 78function curl_share_init(): CurlShareHandle {} 79 80function curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool {} 81 82function curl_share_strerror(int $error_code): ?string {} 83 84function curl_strerror(int $error_code): ?string {} 85 86function curl_version(): array|false {} 87