summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.stub.php
Commit message (Collapse)AuthorAgeFilesLines
* Generate ext/spl class entries from stubsMáté Kocsis2021-02-181-1/+1
| | | | Closes GH-6709
* Update ext/spl parameter namesNikita Popov2020-10-071-4/+4
| | | | Closes GH-6284.
* Improve a few parameter names in ext/splMáté Kocsis2020-08-031-7/+10
| | | | Use the same names which are used by zend functions.
* Fix bug #65006Nikita Popov2020-06-101-1/+1
| | | | | | | | | | | | | | The "callable name" may be the same for multiple distinct callables. The code already worked around this for the case of instance methods, but there are other cases in which callable names clash, such as the use of self:: reported in the referenced bug. Rather than trying to generate a unique name for callables, compare the content of the alfi structures. This is less efficient if there are many autoload functions, but autoload *registration* does not need to be particularly efficient. As a side-effect, this no longer permits unregistering non-callables.
* Cleanup SPL autoload implementationNikita Popov2020-06-101-3/+2
| | | | | | | | | | | | | | | | | 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.
* Use ZPP callable check for spl_autoload_register.George Peter Banyard2020-05-301-1/+1
| | | | | | | | | | 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
* Fix UNKNOWN default values in ext/splMáté Kocsis2020-05-061-3/+3
|
* Generate methods entries from stubs for ext/splMáté Kocsis2020-04-251-0/+2
| | | | Closes GH-5458
* Mark spl_autoload_register function arg as UNKNOWNNikita Popov2020-04-091-1/+1
| | | | Not passing any parameters to this function has magic behavior.
* Add some stubs for SPLMáté Kocsis2020-03-101-3/+0
| | | | Closes GH-5245
* Add funcinfo for spl global functionsTyson Andre2019-12-111-0/+35
This assumes that `iterator_*` will now always throw or abort on failure. Also, move #include _arginfo.h directive to the top of the file - virtually all other files put it there, and developers may base code on basic_functions.c. Closes GH-4968