diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-09 17:36:36 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-10 09:38:47 +0200 |
commit | 5b59d4915cfa7c12ddf65281e4f7f81d6985d27f (patch) | |
tree | 4985494346993cae84eb4f54969173b19cd7badd /docs | |
parent | 68dd6cc92b81cc2253cdfcdc53823ad6527d2e05 (diff) | |
download | php-git-5b59d4915cfa7c12ddf65281e4f7f81d6985d27f.tar.gz |
Cleanup SPL autoload implementation
Replace EG(autoload_func) with a C level zend_autoload hook.
This avoids having to do one indirection through PHP function
calls. The need for EG(autoload_func) was a leftover from the
__autoload() implementation.
Additionally, drop special-casing of spl_autoload(), and instead
register it just like any other autoloading function. This fixes
bug #71236 as a side-effect.
Finally, change spl_autoload_functions() to always return an array.
The distinction between false and an empty array no longer makes
sense here.
Closes GH-5696.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions