History log of /PHP-8.2/build/gen_stub.php (Results 76 – 100 of 179)
Revision Date Author Comments
# 6fd2b393 13-Jun-2022 Pierrick Charron

Indent with TAB in .h files generated by gen_stub


# b40ae808 07-Jun-2022 George Peter Banyard

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP vari

Convert iterable into an internal alias for Traversable|array (#7309)

This does a compile time transformation of ``iterable`` into ``Traversable|array`` which simplifies some of the LSP variance handling.

The arginfo generation script from stubs is updated to produce a union type when it encounters the type ``iterable``
Extension functions which do not regenerate the arginfo, or write them manually are still supported by mimicking the compile time transformation while registering the function.

Type Reflection is preserved for single ``iterable`` (and ``?iterable``) to produce a ReflectionNamedType with name ``iterable``, however usage of ``iterable`` in union types will be converted to ``array|Traversable``

show more ...


# b2ed625d 06-Jun-2022 Máté Kocsis

A few cleanup changes for gen_stub.php


# debd38f8 02-Jun-2022 Máté Kocsis

Add support for sensitive parameters in stubs


# a420ee6c 01-Jun-2022 Máté Kocsis

Update PHP-Parser to 4.14

It supports readonly classes


# b7b5ad71 31-May-2022 Máté Kocsis

Make ini_set invocation compatible with PHP 8.0


# 14da1cb90 22-May-2022 Máté Kocsis

Add support for class constants in stubs (#7434)


# 7850c103 16-May-2022 Máté Kocsis

Add support for readonly classes (#7305)

RFC: https://wiki.php.net/rfc/readonly_classes


# 9a90bd70 12-Mar-2022 Ilija Tovilo

Deprecate ${} string interpolation

https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation


# 36de002c 02-Apr-2022 Michael Voříšek

Verify generated files are up to date in CI

Closes GH-8295


# c345b6ee 13-Apr-2022 Máté Kocsis

Remove unused variable from gen_stub.php


# 7710f994 11-Apr-2022 George Peter Banyard

Fix generation of arginfo if type is just null


# c12da039 11-Apr-2022 George Peter Banyard

Add null and false support to gen_stubs


# 0fab520d 14-Feb-2022 Tyson Andre

Fix zend_register_internal_class_ex alias generation (#8091)

This wouldn't work for creating aliases in a namespace.

It would create the class alias "MyNS_ClassName" instead of

Fix zend_register_internal_class_ex alias generation (#8091)

This wouldn't work for creating aliases in a namespace.

It would create the class alias "MyNS_ClassName" instead of
"MyNS\\ClassName"

show more ...


# b27d2fff 22-Jan-2022 Tyson Andre

Update php-parser to 4.13.2 in build/gen_stub.php (#7989)

v4.13.2 fixes a deprecation notice in php 8.2 for namespacedName


# 62e4ac94 06-Jan-2022 Máté Kocsis

Add support for custom property links

Closes GH-7892


# 04627199 22-Nov-2021 Máté Kocsis

Fix class synopsis generation

Closes GH-7891


# 32e2d97a 20-Dec-2021 Tyson Andre

Allow internal functions to declare if they support compile-time evaluation, add functions. (#7780)

https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer
depend

Allow internal functions to declare if they support compile-time evaluation, add functions. (#7780)

https://wiki.php.net/rfc/strtolower-ascii means that these functions no longer
depend on the current locale in php 8.2. Before that, this was unsafe to
evaluate at compile time.

Followup to GH-7506

Add strcmp/strcasecmp/strtolower/strtoupper functions

Add bin2hex/hex2bin and related functions

Update test of garbage collection using strtolower to use something else to create a refcounted string

show more ...


# baac9708 17-Nov-2021 Máté Kocsis

Add the --generate-optimizer-info option to the help of gen_stub.php


# 68ca3879 15-Nov-2021 Nikita Popov

Fix generation of property with class union type

The generated type was missing the UNION bit. Add a ZEND_TYPE_INIT_UNION
macro to hide the implementation details.


# dd0ec7a5 03-Nov-2021 Nikita Popov

Update PHP-Parser version in gen_stub

This should address the octal issue encountered in #7610.


# 8168d312 08-Sep-2021 Máté Kocsis

Fix a few more classsynopsis generation issues

Closes GH-7480


# ea9f943d 12-Sep-2021 Máté Kocsis

Change gen-stub.php to gen_stub.php in help text


# 73063db5 10-Sep-2021 Máté Kocsis

Fix documentation generation when legacy arginfo is generated

When legacy arginfo is generated, all the type info gets lost. Since this task is performed before any other additional function

Fix documentation generation when legacy arginfo is generated

When legacy arginfo is generated, all the type info gets lost. Since this task is performed before any other additional functionalities of gen_stub.php (e.g. verification, method synopsis and class synopsis generation), these fail as they would require the missing type information.

The issue is fixed by deep cloning the file info objects (albeit only their affected properties), so that we use those for legacy arginfo generation, leaving the original ones untouched.

show more ...


# 4c9892d1 08-Sep-2021 Máté Kocsis

Fix class synopsis generation for interfaces

We have to generate <ooclass> elements for interfaces (rather than <oointerface>) in a number of places: directly inside the <classsynopsis> elem

Fix class synopsis generation for interfaces

We have to generate <ooclass> elements for interfaces (rather than <oointerface>) in a number of places: directly inside the <classsynopsis> element and in the extends list.

show more ...


12345678