summaryrefslogtreecommitdiff
path: root/scripts/dev/gen_stub.php
Commit message (Collapse)AuthorAgeFilesLines
* Move gen_stub.php to build directory and install it so phpize can take care ↵Remi Collet2020-04-031-641/+0
| | | | of it, and thus extension can use it as it is already in Makefile
* mb_detect_encoding(): Use proper array|string parameterNikita Popov2020-03-301-2/+3
| | | | Needed to add support for nullabiltiy in some places.
* Support union types for args in gen stubsNikita Popov2019-11-151-2/+10
| | | | | | | | Using this requires care! The zpp implementation for this union must be consistent with the arginfo implementation! Apart from array|object, this is probably only the case for int|float right now.
* Support single class unions in gen stubsNikita Popov2019-11-151-23/+53
|
* Add union return types for function stubsMáté Kocsis2019-11-111-0/+2
|
* Add support for union types in stubsNikita Popov2019-11-081-37/+148
| | | | | | | | This is the MVP for supporting union types in PHP stubs. Return types with only builtin types work, which is the part we mainly need. Closes GH-4895.
* Allow generating stubs for directoryNikita Popov2019-11-011-3/+14
|
* Make arginfo printing of prefer-ref arguments nicerNikita Popov2019-08-261-5/+17
|
* Make sure that params with null default are marked nullableNikita Popov2019-08-261-1/+10
|
* Convert remaining array function arginfo to PHP stubsTheodore Brown2019-08-261-10/+54
|
* Fix escapes for namespaced classes in gen_stub.phpTyson Andre2019-08-231-2/+2
| | | | | | | | Fix the string generated when the `ns\class` is passed to a macro #define ESCAPE(x) #x // puts(ESCAPE(ns\class)); // warning: unknown escape sequence: \c puts(ESCAPE(ns\\class)); // Properly prints ns\class to stdout.
* Support typed variadic args in gen_stubsNikita Popov2019-08-151-14/+8
|
* Add a prefix to differeniate between class methods and functionsCraig Duncan2019-08-121-1/+1
| | | | Closes GH-4528
* Support regenerating all stubsNikita Popov2019-08-121-11/+25
|
* Add support for callable to the stub generator [ci skip]Stephen Reay2019-08-111-0/+2
|
* Handle preprocessor conditions inside classesNikita Popov2019-08-101-35/+26
| | | | Also remove the dead parseClass() function.
* Fallback to curl in gen_stub if wget failsStephen Reay2019-08-101-0/+4
| | | | Closes GH-4502.
* Expand preprocessor support in gen_stubsNikita Popov2019-08-101-22/+46
| | | | Support #ifdef, #ifndef, #else and nested #if's.
* Make uninitialized DateTime an ErrorNikita Popov2019-08-091-3/+7
| | | | This avoids many spurious false return values.
* Generate arginfo from PHP stub filesNikita Popov2019-08-091-0/+380
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.