History log of /PHP-8.0/build/gen_stub.php (Results 1 – 25 of 43)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 36de002c 02-Apr-2022 Michael Voříšek

Verify generated files are up to date in CI

Closes GH-8295


# 80e5ad5a 04-Jul-2021 Máté Kocsis

Various ext/spl stub fixes

Closes GH-7215


# 5e06dad4 06-Feb-2021 Tyson Andre

Properly render 2+ namespaces functions in build/gen_stub.php

Affects ZEND_NS_FE

Add test cases of the global function

Backported to php 8.0 from GH-6664


# 973138f3 06-Jan-2021 Nikita Popov

Add support for union types for internal functions

This closes the last hole in the supported types for internal
function arginfo types. It's now possible to represent unions of
mult

Add support for union types for internal functions

This closes the last hole in the supported types for internal
function arginfo types. It's now possible to represent unions of
multiple classes. This is done by storing them as TypeA|TypeB and
PHP will then convert this into an appropriate union type list.

Closes GH-6581.

show more ...


# 446ad045 30-Dec-2020 Máté Kocsis

Fix refentry attribute replacing


Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24
# 9cec093b 22-Oct-2020 Máté Kocsis

Add support for generating methodsynopses from stubs

Closes GH-6367


# 1c868b18 26-Oct-2020 Nikita Popov

Fix parameter stats generation

[ci skip]


# 47bbfe1f 23-Oct-2020 Máté Kocsis

Require stubs to declare return types for magic methods when possible

Closes GH-6376


Revision tags: php-8.0.0RC2
# d6264b09 13-Oct-2020 Máté Kocsis

Verify parameter names of function aliases

Closes GH-6335


Revision tags: php-7.4.12RC1, php-7.3.24RC1
# c96d884d 07-Oct-2020 Nikita Popov

Avoid namespaced class symbol clashes in gen_stub

Add the namespace prefix (using underscores) to both the arginfo
name and the method declaration name.


# 9c710b1d 07-Oct-2020 Nikita Popov

Support "static" type in gen_stub


# 47ef51cb 05-Oct-2020 Nikita Popov

Add @generate-legacy-arginfo tag


# dba67155 05-Oct-2020 Remi Collet

Improve gen_stub.php - drop --legacy option, generate file is exists - add --help option - add debug "Saved ..." message


# dfa6d1c2 02-Oct-2020 Nikita Popov

Support specifying linkage for generate-function-entries

The linkage can be specified as the argument to the
@generate-function-entries tag. Test this on zend_test.


# 924ac2b9 02-Oct-2020 Nikita Popov

Add partial namespace support to gen_stub


# 2e32a095 02-Oct-2020 Nikita Popov

Add gen_stub --legacy flag

This flag generates an arginfo file that discards all type and
default value information. As such, it is compatible with old
(and very old) PHP versions.

Add gen_stub --legacy flag

This flag generates an arginfo file that discards all type and
default value information. As such, it is compatible with old
(and very old) PHP versions.

Intended for use by extensions to generate one arginfo file for
PHP 8 and one for older versions.

show more ...


Revision tags: php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# 9428e161 24-Sep-2020 Nikita Popov

Add option to print parameter name stats to gen_stub


# 64af12d1 19-Sep-2020 Máté Kocsis

Add support for `@implementation-alias` in stubs

Closes GH-6170


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1
# 94fd52dd 03-Sep-2020 Levi Morrison

Add Z_PARAM_ITERABLE and co


Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22
# e056e2da 23-Aug-2020 Tyson Andre

Check for duplicate names in gen_stub.php

With named arguments in php 8.0, it's important that php's modules
or PECL extensions using gen_stub.php don't generate functions
with dupli

Check for duplicate names in gen_stub.php

With named arguments in php 8.0, it's important that php's modules
or PECL extensions using gen_stub.php don't generate functions
with duplicate names.

Warn if a parameter name is repeated,
even if the last occurrence is a variadic parameter

Closes GH-6035

show more ...


# 118406a3 23-Aug-2020 Máté Kocsis

Remove custom hacks from gen_stub.php after PHP-Parser upgrade


# 4bba59d4 23-Aug-2020 Tyson Andre

Update PHP-Parser from 4.3.0 to 4.9.0

PHP-Parser 4.3.0 failed to recognize that the `match` keyword could be
used as a class constant name.
4.9.0 also adds support for keywords in na

Update PHP-Parser from 4.3.0 to 4.9.0

PHP-Parser 4.3.0 failed to recognize that the `match` keyword could be
used as a class constant name.
4.9.0 also adds support for keywords in namespaced names.
See https://github.com/nikic/PHP-Parser/releases

So forcing regeneration of spl_iterators.stub.php failed.

PECL extensions using gen_stub.php would also be affected
by the same issue.

```
ext/spl/spl_iterators.stub.php
public function __construct(Iterator $iterator, string $regex,
int $mode = self::MATCH, int $flags = 0, int $preg_flags = 0) {}
```

Testing: I successfully regenerated stubs by setting forceRegeneration to true
and running `touch **/*.stub.php; make`.
The stubs did not change, as expected.

Closes GH-6036

show more ...


Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21
# a10f8876 30-Jul-2020 Máté Kocsis

Check missing parameter types in stubs

[skip ci] Closes GH-5627


# 1f8a93ab 24-Jul-2020 Nikita Popov

Support class+mask union for internal argument


Revision tags: php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20
# d8dfb21b 02-Jul-2020 Máté Kocsis

Add support for forcing regeneration of arginfo files

Closes GH-5795


12