summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions_arginfo.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement enumsIlija Tovilo2021-03-171-1/+8
| | | | | | | | RFC: https://wiki.php.net/rfc/enumerations Co-authored-by: Nikita Popov <nikita.ppv@gmail.com> Closes GH-6489.
* Generate class entries from stubs for com, standard, xmlreader, xmlwriter, ↵Máté Kocsis2021-02-221-1/+16
| | | | | | xsl, zip, Zend Closes GH-6706
* Improve class entry generationMáté Kocsis2021-02-161-1/+0
| | | | Related to GH-6701
* Generate zend class entries based on stubsMáté Kocsis2021-02-141-1/+2
| | | | Closes GH-6685
* Remove some incorrect mixed parameter typesMáté Kocsis2020-11-211-3/+3
|
* Zend parameter renames amendmentMáté Kocsis2020-09-291-5/+5
| | | | Closes GH-6228
* Use C zpp for get_class_vars()Nikita Popov2020-09-221-2/+2
|
* Add a few missing parameter types in stubsMáté Kocsis2020-07-301-2/+2
| | | | Related to GH-5627
* Cleanup argument handling of Zend functions and methodsMáté Kocsis2020-07-211-32/+35
| | | | Closes GH-5847
* Use ZPP callable check in zend built in functionsGeorge Peter Banyard2020-07-081-3/+3
|
* Use correct ZPP mechanism in get_class_methods()codinghuang2020-07-021-3/+3
| | | | | | | From now on, instead of returning null, an exception is thrown when not a string or an object is passed to the function. Closes GH-5792
* Update outdated arginfo hashesMáté Kocsis2020-06-301-1/+1
|
* Add ZPP macros for class name or object parametersMáté Kocsis2020-06-301-1/+1
| | | | Closes GH-5647
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Annotate internal functions with the mixed typeMáté Kocsis2020-05-251-1/+1
| | | | Closes GH-5618
* Add get_resource_id() functionNikita Popov2020-05-111-0/+6
| | | | | | | | Behavior is same as for (int) $resource, just under a clearer name. Also type-safe, in that the parameter actually needs to be a resource. Closes GH-5427.
* Completely remove disabled functions from function tableNikita Popov2020-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, disabling a function only replaces the internal function handler with one that throws a warning, and a few places in the engine special-case such functions, such as function_exists. This leaves us with a Schrödinger's function, which both does not exist (function_exists returns false) and does exist (you cannot define a function with the same name). In particular, this prevents the implementation of robust polyfills, as reported in https://bugs.php.net/bug.php?id=79382: if (!function_exists('getallheaders')) { function getallheaders(...) { ... } } If getallheaders() is a disabled function, this code will break. This patch changes disable_functions to remove the functions from the function table completely. For all intents and purposes, it will look like the function does not exist. This also renders two bits of PHP functionality obsolete and thus deprecated: * ReflectionFunction::isDisabled(), as it will no longer be possible to construct the ReflectionFunction of a disabled function in the first place. * get_defined_functions() with $exclude_disabled=false, as get_defined_functions() now never returns disabled functions. Fixed bug #79382. Closes GH-5473.
* Generate zend_builtin_functions FEs from stubsNikita Popov2020-04-211-0/+121
|
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-15/+19
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Do not include the same stub multiple timesMáté Kocsis2020-04-031-1/+1
| | | | Closes GH-5322
* Promote some warnings to Errors in Zend basic functionsGeorge Peter Banyard2020-03-311-15/+17
| | | | Closes GH-5325
* Make get_defined_vars() always return an arrayMáté Kocsis2019-12-201-2/+1
| | | | GH-5025
* Add union return types for function stubsMáté Kocsis2019-11-111-7/+8
|
* Fix required number of arguments in stubsNikita Popov2019-10-071-1/+1
| | | | | | | | | * get_parent_class() argument is optional * Mark array_filter() $callback as optional * The $base of gmp_strval() is optional * DateTime constructor also accepts zero arguments * hash_update_file() stream context is optional * xmlwriter_write_dtd_entity() $isparam argument is optional
* Generate arginfo from PHP stub filesNikita Popov2019-08-091-0/+198
Signature stubs for internal functions are specified in xyz.stub.php, from which we generate actual arginfo structures in xyz_arginfo.h. This file then needs to be included in the implementation appropriately. Arginfo from stubs can be regenerated using scripts/dev/gen_stub.php. However, this should also automatically happen when the stub file is modified.