]> granicus.if.org Git - php/commit
Use ZPP callable check for spl_autoload_register.
authorGeorge Peter Banyard <girgias@php.net>
Thu, 26 Mar 2020 00:00:55 +0000 (01:00 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 30 May 2020 11:59:06 +0000 (13:59 +0200)
commit2302b14aab3bf01a9a87d2ee87951a13bc7752a0
tree5e976f4d9d350e02337d436dab94c908ffc33403
parentdd6e54b7461d24598d1e125953e330e3924147ed
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
UPGRADING
Zend/tests/bug78868.phpt
ext/spl/php_spl.c
ext/spl/php_spl.stub.php
ext/spl/php_spl_arginfo.h
ext/spl/tests/spl_autoload_001.phpt
ext/spl/tests/spl_autoload_005.phpt
ext/spl/tests/spl_autoload_007.phpt
ext/spl/tests/spl_autoload_008.phpt
ext/spl/tests/spl_autoload_throw_with_spl_autoloader_call_as_autoloader.phpt [new file with mode: 0644]
ext/spl/tests/spl_autoload_warn_on_false_do_throw.phpt [new file with mode: 0644]