| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Closes GH-6701
|
| |
|
|
| |
Closes GH-6684
|
| |
|
|
| |
Related to GH-6701
|
| |
|
|
|
|
| |
enabled
Closes GH-6675
|
| |
|
|
|
|
|
|
| |
Affects both INIT_NS_CLASS_ENTRY and ZEND_NS_FE
Add test cases of the global function and namespaced values
Closes GH-6664
|
| |
|
|
|
|
| |
Closes GH-6289
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
| |
|
|
|
|
|
|
| |
This makes --verify also check @implementation-alias. Failures are
ignored using @no-verify instead. Some mistakes have been made that
would have been caught by this...
Closes GH-6615.
|
| |
|
|
|
|
|
|
|
| |
Some functions have multiple aliases, while the $aliasMap can
only record one.
Methodsynopsis generation probably shouldn't use it either, but
at least that case seems to only be interested in whether there
is an alias at all.
|
| | |
|
| |
|
|
| |
In case the stub file also contains documentation.
|
| |
|
|
|
| |
This makes sure that it's present even on exceptions from deeper
down the stack, where we can't add it manually.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
Closes GH-6367
|
| |
|
|
| |
[ci skip]
|
| |
|
|
| |
Closes GH-6376
|
| |
|
|
| |
Closes GH-6335
|
| |
|
|
|
| |
Add the namespace prefix (using underscores) to both the arginfo
name and the method declaration name.
|
| | |
|
| | |
|
| |
|
|
| |
--help option - add debug "Saved ..." message
|
| |
|
|
|
| |
The linkage can be specified as the argument to the
@generate-function-entries tag. Test this on zend_test.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
Closes GH-6170
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
[skip ci] Closes GH-5627
|
| | |
|
| |
|
|
| |
Closes GH-5795
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Closes GH-5618
|
| | |
|
| |
|
|
|
| |
If PHP-Parser is not yet installed, make sure we don't try to
install it N times in parallel.
|
| |
|
|
| |
Not worth bumping requirements over this...
|
| |
|
|
| |
Closes GH-5374
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Closes GH-5368
|
| |
|
|
| |
Closes GH-5363
|
| |
|
|
|
|
|
| |
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>
|
| | |
|
| |
|
|
|
|
| |
Closes GH-5350
Add support for generating deprecated function entries, as well as forward declaration
of function aliases.
|
| | |
|
| | |
|
| |
|
|
| |
We'll need this if we want to generate method entries.
|
| |
|
|
|
|
|
| |
If @generate-function-entries is specified in the stub file,
also generate function entries for the extension.
Currently limited to free functions only.
|