History log of /PHP-8.2/build/gen_stub.php (Results 151 – 175 of 180)
Revision Date Author Comments
# 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 ...


# 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


# 94fd52dd 03-Sep-2020 Levi Morrison

Add Z_PARAM_ITERABLE and co


# 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 ...


# 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


# d8dfb21b 02-Jul-2020 Máté Kocsis

Add support for forcing regeneration of arginfo files

Closes GH-5795


# 1ed5a63c 02-Jul-2020 Nikita Popov

Check that "tokenizer" extension is available in gen_stub.php


# c9b9f525 19-Jun-2020 Nikita Popov

Include stub hash in generated arginfo files

The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necess

Include stub hash in generated arginfo files

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.

show more ...


# b3718430 25-May-2020 Máté Kocsis

Annotate internal functions with the mixed type

Closes GH-5618


# c3d6a0ac 29-Apr-2020 Remi Collet

manage ZEND_DEP_FALIAS in gen_stub


# fa4bdf1c 21-Apr-2020 Nikita Popov

Make gen_stub parallelism safe

If PHP-Parser is not yet installed, make sure we don't try to
install it N times in parallel.


# 110e6e4f 14-Apr-2020 Nikita Popov

Make gen_stub.php compatible with PHP 7.1 again

Not worth bumping requirements over this...


# dfd0acf0 11-Apr-2020 Máté Kocsis

Generate method entries for ext/dom

Closes GH-5374


# 047d8147 11-Apr-2020 Tyson Andre

Fix an undefined class error running gen_stub in php8

For whatever reason, php 8 would not have loaded the subsequent classes when
running `php build/gen_stub.php path/to/filename.php`.

Fix an undefined class error running gen_stub in php8

For whatever reason, php 8 would not have loaded the subsequent classes when
running `php build/gen_stub.php path/to/filename.php`.
I assume it didn't load the classes immediately because there's a possibility
the code before it would throw.
(Probably because __toString was added recently and prevents early binding)

Also, fix a typo

Closes GH-5369

show more ...


# 3fe49d81 11-Apr-2020 Máté Kocsis

Generate method entries from stubs for a couple of extensions

Closes GH-5368


# 1d05771a 09-Apr-2020 Máté Kocsis

Add support for generating method entries from stubs

Closes GH-5363


# 3709e74b 06-Apr-2020 Máté Kocsis

Store default parameter values of internal functions in arg info

Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal function

Store default parameter values of internal functions in arg info

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>

show more ...


# d5bbb28f 04-Apr-2020 Máté Kocsis

Move variable declaration closer to its usage


# 610815c0 04-Apr-2020 Máté Kocsis

Improve gen_stub.php

Closes GH-5350
Add support for generating deprecated function entries, as well as forward declaration
of function aliases.


12345678