1<?php
2
3/** @generate-class-entries */
4
5#[\AllowDynamicProperties]
6class stdClass
7{
8}
9
10function exit(string|int $status = 0): never {}
11
12/** @alias exit */
13function die(string|int $status = 0): never {}
14
15/** @refcount 1 */
16function zend_version(): string {}
17
18function func_num_args(): int {}
19
20function func_get_arg(int $position): mixed {}
21
22/** @return array<int, mixed> */
23function func_get_args(): array {}
24
25function strlen(string $string): int {}
26
27/** @compile-time-eval */
28function strcmp(string $string1, string $string2): int {}
29
30/** @compile-time-eval */
31function strncmp(string $string1, string $string2, int $length): int {}
32
33/** @compile-time-eval */
34function strcasecmp(string $string1, string $string2): int {}
35
36/** @compile-time-eval */
37function strncasecmp(string $string1, string $string2, int $length): int {}
38
39function error_reporting(?int $error_level = null): int {}
40
41function define(string $constant_name, mixed $value, bool $case_insensitive = false): bool {}
42
43function defined(string $constant_name): bool {}
44
45function get_class(object $object = UNKNOWN): string {}
46
47function get_called_class(): string {}
48
49function get_parent_class(object|string $object_or_class = UNKNOWN): string|false {}
50
51/** @param object|string $object_or_class */
52function is_subclass_of(mixed $object_or_class, string $class, bool $allow_string = true): bool {}
53
54/** @param object|string $object_or_class */
55function is_a(mixed $object_or_class, string $class, bool $allow_string = false): bool {}
56
57/**
58 * @return array<string, mixed|ref>
59 * @refcount 1
60 */
61function get_class_vars(string $class): array {}
62
63function get_object_vars(object $object): array {}
64
65function get_mangled_object_vars(object $object): array {}
66
67/**
68 * @return array<int, string>
69 * @refcount 1
70 */
71function get_class_methods(object|string $object_or_class): array {}
72
73/** @param object|string $object_or_class */
74function method_exists($object_or_class, string $method): bool {}
75
76/**
77 * @param object|string $object_or_class
78 * @frameless-function {"arity": 2}
79 */
80function property_exists($object_or_class, string $property): bool {}
81
82/**
83 * @frameless-function {"arity": 1}
84 * @frameless-function {"arity": 2}
85 */
86function class_exists(string $class, bool $autoload = true): bool {}
87
88function interface_exists(string $interface, bool $autoload = true): bool {}
89
90function trait_exists(string $trait, bool $autoload = true): bool {}
91
92function enum_exists(string $enum, bool $autoload = true): bool {}
93
94function function_exists(string $function): bool {}
95
96function class_alias(string $class, string $alias, bool $autoload = true): bool {}
97
98/**
99 * @return array<int, string>
100 * @refcount 1
101 */
102function get_included_files(): array {}
103
104/**
105 * @return array<int, string>
106 * @alias get_included_files
107 */
108function get_required_files(): array {}
109
110function trigger_error(string $message, int $error_level = E_USER_NOTICE): true {}
111
112/** @alias trigger_error */
113function user_error(string $message, int $error_level = E_USER_NOTICE): true {}
114
115/** @return callable|null */
116function set_error_handler(?callable $callback, int $error_levels = E_ALL) {}
117
118function restore_error_handler(): true {}
119
120/** @return callable|null */
121function set_exception_handler(?callable $callback) {}
122
123function restore_exception_handler(): true {}
124
125/**
126 * @return array<int, string>
127 * @refcount 1
128 */
129function get_declared_classes(): array {}
130
131/**
132 * @return array<int, string>
133 * @refcount 1
134*/
135function get_declared_traits(): array {}
136
137/**
138 * @return array<int, string>
139 * @refcount 1
140 */
141function get_declared_interfaces(): array {}
142
143/**
144 * @return array<string, array>
145 * @refcount 1
146 */
147function get_defined_functions(bool $exclude_disabled = true): array {}
148
149/**
150 * @return array<string, mixed|ref>
151 * @refcount 1
152 */
153function get_defined_vars(): array {}
154
155/**
156 * @param resource $resource
157 * @refcount 1
158 */
159function get_resource_type($resource): string {}
160
161/** @param resource $resource */
162function get_resource_id($resource): int {}
163
164function get_resources(?string $type = null): array {}
165
166/**
167 * @return array<int, string>
168 * @refcount 1
169 */
170function get_loaded_extensions(bool $zend_extensions = false): array {}
171
172/**
173 * @return array<string, mixed>
174 * @refcount 1
175 */
176function get_defined_constants(bool $categorize = false): array {}
177
178/**
179 * @return array<int, array>
180 * @refcount 1
181 */
182function debug_backtrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {}
183
184function debug_print_backtrace(int $options = 0, int $limit = 0): void {}
185
186function extension_loaded(string $extension): bool {}
187
188/**
189 * @return array<int, string>|false
190 * @refcount 1
191 */
192function get_extension_funcs(string $extension): array|false {}
193
194#if ZEND_DEBUG && defined(ZTS)
195function zend_thread_id(): int {}
196#endif
197
198function gc_mem_caches(): int {}
199
200function gc_collect_cycles(): int {}
201
202function gc_enabled(): bool {}
203
204function gc_enable(): void {}
205
206function gc_disable(): void {}
207
208/**
209 * @return array<string, int|float|bool>
210 * @refcount 1
211 */
212function gc_status(): array {}
213