History log of /PHP-8.2/build/gen_stub.php (Results 26 – 50 of 180)
Revision Date Author Comments
# 145602f3 28-Feb-2023 Bob Weinand

Fix bug in zend_test assuming null not being the first type

(I agree that null should come last, but then it should rather throw with a proper message than emit an undefined key warning.)

Fix bug in zend_test assuming null not being the first type

(I agree that null should come last, but then it should rather throw with a proper message than emit an undefined key warning.)

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>

show more ...


# 81abd8dc 27-Feb-2023 Bob Weinand

Allow gen_stub.php to parse and ignore extended docblock types

Extended docblock types, according to psalm or phpstan conventions may include array shapes, callable signatures etc.. These ar

Allow gen_stub.php to parse and ignore extended docblock types

Extended docblock types, according to psalm or phpstan conventions may include array shapes, callable signatures etc.. These are now ignored by ignoring any nested parenthesized expression (followed by optional :type) at the end of the type.

show more ...


# cf1d21ed 20-Jan-2023 Bob Weinand

Add a couple clarifying comments


# 1fbe8559 19-Jan-2023 Bob Weinand

Honor constant expressions instead of just taking the last constant encountered in stubs

As an example:
should be translated to:
ZVAL_LONG(&attribute_Attribute_class_test_arg0, ZEND_

Honor constant expressions instead of just taking the last constant encountered in stubs

As an example:
should be translated to:
ZVAL_LONG(&attribute_Attribute_class_test_arg0, ZEND_ATTRIBUTE_TARGET_FUNCTION | ZEND_ATTRIBUTE_TARGET_METHOD);

show more ...


# d6651426 15-Nov-2022 Máté Kocsis

Escape the role attribute of namespaced classes (#9952)


# 93605f28 10-Nov-2022 Máté Kocsis

Make the usage of the role attribute more clear (#9901)

Currently, the role attribute is mainly used to differentiate OO and procedural "aliases" when they are documented on the same page (e

Make the usage of the role attribute more clear (#9901)

Currently, the role attribute is mainly used to differentiate OO and procedural "aliases" when they are documented on the same page (e.g. https://www.php.net/manual/en/datetime.diff.php). However, these function-method counterparts are not always aliases in fact according to the stubs (#9491). That's why sometimes the usage of the role attribute is ambiguous, thus syncing the manual with the stubs results in false positive diffs.

This change fixes the problem by a very obtrusive way: by changing the value of all role="oop" attributes to the actual class name, like role="DateTime", and by getting rid of all role="procedural" attributes as they became unnecessary. This way, class synopsis pages can clearly reference methods, and skip functions. Additionally, gen_stub.php will be able to generate the correct methodsynopsis role even though a single page describes multiple methods, like `DateTime/DateTimeImmutable/DateTimeInterface::diff()`.

show more ...


# 36fdc6fd 10-Sep-2022 Nikita Popov

Check that all preprocessor conditions are terminated


# d4e40dc0 31-Oct-2023 Máté Kocsis

Fix GH-12558 Escape \N in generated stubs (#12562)


# ef4f0883 04-Jul-2023 Ilija Tovilo

Revert "Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs"

This reverts commit d7ab0ff0c81bf672c3d4ac73e1b2cbd158296eef.


# d7ab0ff0 03-Jul-2023 Máté Kocsis

Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs


# 717335ec 06-Mar-2023 Derick Rethans

Fixed macro generation for variadics, which don't have a default value


# 7fccdf72 10-Feb-2023 SATO Kentaro

Add support for generating namespaced constant

Closes GH-10552


# 7b08fe9f 28-Dec-2022 Máté Kocsis

Do not list private constructors as inherited


# 38e13879 26-Dec-2022 Máté Kocsis

Do not display non-existent constructors


# eebf3bc0 18-Dec-2022 Máté Kocsis

Better document constructors

Until https://github.com/php/php-src/pull/10098 default constructors were sometimes documented, sometimes omitted. The above PR made adding documentation for con

Better document constructors

Until https://github.com/php/php-src/pull/10098 default constructors were sometimes documented, sometimes omitted. The above PR made adding documentation for constructor of all non-abstract classes required. However, this is not desired when such a class inherits a constructor from its parent. The current PR fixes the behavior the following way:
- documents inherited constructors (along with destructors)
- makes it possible to generate/replace the methodsynopsis of implicit default constructors which don't have a stub counterpart

show more ...


# d832125b 16-Dec-2022 Máté Kocsis

Only include the default constructor for non-abstract class synopses


# 6aa5e584 16-Dec-2022 Máté Kocsis

Backport methodsynopsis role attributes changes from master

Commits https://github.com/php/php-src/commit/93605f286d11876da44d2ecd41c13d7e3f0aae66 and https://github.com/php/php-src/commit/d

Backport methodsynopsis role attributes changes from master

Commits https://github.com/php/php-src/commit/93605f286d11876da44d2ecd41c13d7e3f0aae66 and https://github.com/php/php-src/commit/d6651426f405342f74cdfe930448912ef68e23c4

show more ...


# 0fc60fab 13-Dec-2022 Máté Kocsis

Always include the constructor on the class manual pages


# b4df038c 13-Dec-2022 Máté Kocsis

Remove the superfluous closing parentheses from class synopsis page includes


# 60cf9fbe 13-Dec-2022 Máté Kocsis

Replace another root XML element format to the "canonical" one


# 721e604a 30-Oct-2022 Máté Kocsis

Do not display the value of UNKNOWN constants in the manual (#9843)


# 69ef3247 10-Oct-2022 Máté Kocsis

Generate constant declarations with the CONST_CS flag for PHP 7.x


# e4f23769 26-Sep-2022 Máté Kocsis

Improve string class constant code generation (#9577)

Using strlen() will make sure that non-constant values can also be used.


# 8b632749 11-Sep-2022 Máté Kocsis

Use PHP 7.4 syntax in gen_stub.php


# e0422979 09-Sep-2022 Máté Kocsis

Validate if the refpurpose and the description is in sync (#9510)


12345678