curl.stub.php 2.9 KB

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