1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 05:02:27 +02:00
Files
archived-php-src/ext/spl/php_spl.stub.php
George Peter Banyard 2302b14aab Use ZPP callable check for spl_autoload_register.
This makes it always throw a TypeError, moreover this makes the
error message consistent.

Added a warning mentioning that the second parameter is now ignored
when passed false.

Closes GH-5301
2020-05-30 13:59:06 +02:00

35 lines
1.1 KiB
PHP
Executable File

<?php
/** @generate-function-entries */
function class_implements($what, bool $autoload = true): array|false {}
function class_parents($instance, bool $autoload = true): array|false {}
function class_uses($what, bool $autoload = true): array|false {}
function spl_autoload(string $class_name, ?string $file_extensions = null): void {}
// This silently ignores non-string class names
function spl_autoload_call($class_name): void {}
function spl_autoload_extensions(?string $file_extensions = null): string {}
function spl_autoload_functions(): array|false {}
function spl_autoload_register(?callable $autoload_function = null, bool $throw = true, bool $prepend = false): bool {}
function spl_autoload_unregister($autoload_function): bool {}
function spl_classes(): array {}
function spl_object_hash(object $obj): string {}
function spl_object_id(object $obj): int {}
function iterator_apply(Traversable $iterator, callable $function, ?array $args = null): int {}
function iterator_count(Traversable $iterator): int {}
function iterator_to_array(Traversable $iterator, bool $use_keys = true): array {}