History log of /php-src/build/gen_stub.php (Results 176 – 200 of 210)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
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

# 1ed5a63c 02-Jul-2020 Nikita Popov

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

Revision tags: php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1
# 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 ...

Revision tags: php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1
# b3718430 25-May-2020 Máté Kocsis

Annotate internal functions with the mixed type

Closes GH-5618

Revision tags: php-7.4.6, php-7.2.31
# c3d6a0ac 29-Apr-2020 Remi Collet

manage ZEND_DEP_FALIAS in gen_stub

Revision tags: php-7.4.6RC1, php-7.3.18RC1
# 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...

Revision tags: php-7.2.30, php-7.4.5, php-7.3.17
# 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 ...

123456789