zend_builtin_functions.stub.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <?php
  2. /** @generate-class-entries */
  3. class stdClass
  4. {
  5. }
  6. /** @refcount 1 */
  7. function zend_version(): string {}
  8. function func_num_args(): int {}
  9. function func_get_arg(int $position): mixed {}
  10. /** @return array<int, mixed> */
  11. function func_get_args(): array {}
  12. function strlen(string $string): int {}
  13. function strcmp(string $string1, string $string2): int {}
  14. function strncmp(string $string1, string $string2, int $length): int {}
  15. function strcasecmp(string $string1, string $string2): int {}
  16. function strncasecmp(string $string1, string $string2, int $length): int {}
  17. function error_reporting(?int $error_level = null): int {}
  18. function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {}
  19. function defined(string $constant_name): bool {}
  20. function get_class(object $object = UNKNOWN): string {}
  21. function get_called_class(): string {}
  22. function get_parent_class(object|string $object_or_class = UNKNOWN): string|false {}
  23. /** @param object|string $object_or_class */
  24. function is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool {}
  25. /** @param object|string $object_or_class */
  26. function is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool {}
  27. /**
  28. * @return array<string, mixed|ref>
  29. * @refcount 1
  30. */
  31. function get_class_vars(string $class): array {}
  32. function get_object_vars(object $object): array {}
  33. function get_mangled_object_vars(object $object): array {}
  34. /**
  35. * @return array<int, string>
  36. * @refcount 1
  37. */
  38. function get_class_methods(object|string $object_or_class): array {}
  39. /** @param object|string $object_or_class */
  40. function method_exists($object_or_class, string $method): bool {}
  41. /** @param object|string $object_or_class */
  42. function property_exists($object_or_class, string $property): bool {}
  43. function class_exists(string $class, bool $autoload = true): bool {}
  44. function interface_exists(string $interface, bool $autoload = true): bool {}
  45. function trait_exists(string $trait, bool $autoload = true): bool {}
  46. function enum_exists(string $enum, bool $autoload = true): bool {}
  47. function function_exists(string $function): bool {}
  48. function class_alias(string $class, string $alias, bool $autoload = true): bool {}
  49. /**
  50. * @return array<int, string>
  51. * @refcount 1
  52. */
  53. function get_included_files(): array {}
  54. /**
  55. * @return array<int, string>
  56. * @alias get_included_files
  57. */
  58. function get_required_files(): array {}
  59. function trigger_error(string $message, int $error_level = E_USER_NOTICE): bool {}
  60. /** @alias trigger_error */
  61. function user_error(string $message, int $error_level = E_USER_NOTICE): bool {}
  62. /** @return callable|null */
  63. function set_error_handler(?callable $callback, int $error_levels = E_ALL) {}
  64. /** @return true */
  65. function restore_error_handler(): bool {}
  66. /** @return callable|null */
  67. function set_exception_handler(?callable $callback) {}
  68. /** @return true */
  69. function restore_exception_handler(): bool {}
  70. /**
  71. * @return array<int, string>
  72. * @refcount 1
  73. */
  74. function get_declared_classes(): array {}
  75. /**
  76. * @return array<int, string>
  77. * @refcount 1
  78. */
  79. function get_declared_traits(): array {}
  80. /**
  81. * @return array<int, string>
  82. * @refcount 1
  83. */
  84. function get_declared_interfaces(): array {}
  85. /**
  86. * @return array<string, array>
  87. * @refcount 1
  88. */
  89. function get_defined_functions(bool $exclude_disabled = true): array {}
  90. /**
  91. * @return array<string, mixed|ref>
  92. * @refcount 1
  93. */
  94. function get_defined_vars(): array {}
  95. /**
  96. * @param resource $resource
  97. * @refcount 1
  98. */
  99. function get_resource_type($resource): string {}
  100. /** @param resource $resource */
  101. function get_resource_id($resource): int {}
  102. function get_resources(?string $type = null): array {}
  103. /**
  104. * @return array<int, string>
  105. * @refcount 1
  106. */
  107. function get_loaded_extensions(bool $zend_extensions = false): array {}
  108. /**
  109. * @return array<string, mixed>
  110. * @refcount 1
  111. */
  112. function get_defined_constants(bool $categorize = false): array {}
  113. /**
  114. * @return array<int, array>
  115. * @refcount 1
  116. */
  117. function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {}
  118. function debug_print_backtrace(int $options = 0, int $limit = 0): void {}
  119. function extension_loaded(string $extension): bool {}
  120. /**
  121. * @return array<int, string>|false
  122. * @refcount 1
  123. */
  124. function get_extension_funcs(string $extension): array|false {}
  125. #if ZEND_DEBUG && defined(ZTS)
  126. function zend_thread_id(): int {}
  127. #endif
  128. function gc_mem_caches(): int {}
  129. function gc_collect_cycles(): int {}
  130. function gc_enabled(): bool {}
  131. function gc_enable(): void {}
  132. function gc_disable(): void {}
  133. /**
  134. * @return array<string, int>
  135. * @refcount 1
  136. */
  137. function gc_status(): array {}