xref: /PHP-8.3/ext/spl/php_spl.stub.php (revision d4a9cc88)
1<?php
2
3/** @generate-class-entries */
4
5/**
6 * @param object|string $object_or_class
7 * @return array<string, string>|false
8 * @refcount 1
9 */
10function class_implements($object_or_class, bool $autoload = true): array|false {}
11
12/**
13 * @param object|string $object_or_class
14 * @return array<string, string>|false
15 * @refcount 1
16 */
17function class_parents($object_or_class, bool $autoload = true): array|false {}
18
19/**
20 * @param object|string $object_or_class
21 * @return array<string, string>|false
22 * @refcount 1
23 */
24function class_uses($object_or_class, bool $autoload = true): array|false {}
25
26function spl_autoload(string $class, ?string $file_extensions = null): void {}
27
28function spl_autoload_call(string $class): void {}
29
30function spl_autoload_extensions(?string $file_extensions = null): string {}
31
32function spl_autoload_functions(): array {}
33
34function spl_autoload_register(?callable $callback = null, bool $throw = true, bool $prepend = false): bool {}
35
36function spl_autoload_unregister(callable $callback): bool {}
37
38/**
39 * @return array<string, string>
40 * @refcount 1
41 */
42function spl_classes(): array {}
43
44/** @refcount 1 */
45function spl_object_hash(object $object): string {}
46
47function spl_object_id(object $object): int {}
48
49function iterator_apply(Traversable $iterator, callable $callback, ?array $args = null): int {}
50
51function iterator_count(iterable $iterator): int {}
52
53function iterator_to_array(iterable $iterator, bool $preserve_keys = true): array {}
54