History log of /php-src/build/gen_stub.php (Results 1 – 25 of 193)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# c08535c8 30-May-2024 Máté Kocsis

Fix regex for searching for constant lists

https://github.com/php/php-src/commit/0242577b3378c91e5d973132e175849f3ca0cdc3 partly fixed the detection of external constant lists referenced on

Fix regex for searching for constant lists

https://github.com/php/php-src/commit/0242577b3378c91e5d973132e175849f3ca0cdc3 partly fixed the detection of external constant lists referenced on Predefined Constants pages, but changing the file search regex is needed too in order to fully fix the underlying issue in case of cURL constants.

show more ...


# 0242577b 29-May-2024 Máté Kocsis

Also check constants in referenced constant lists

Some constants are extracted from Predefined Constants pages (e.g. https://github.com/php/doc-en/pull/3413), which should alsobe checked whe

Also check constants in referenced constant lists

Some constants are extracted from Predefined Constants pages (e.g. https://github.com/php/doc-en/pull/3413), which should alsobe checked when verifying the manual.

show more ...


# cf004ed4 28-May-2024 Máté Kocsis

Fix implicitly nullable type detection in stubs


# be19e795 27-May-2024 Valentin Udaltsov

Fix gen_stub.php errors (#14335)


# 78f72cff 20-May-2024 Máté Kocsis

Add support for generating parameter attributes for the manual (#14270)


# f093015a 17-May-2024 Máté Kocsis

Fix class constant and property ID generation for the manual (#14249)

Related to https://github.com/php/doc-en/pull/3367


# 5bb03158 19-Mar-2024 Máté Kocsis

Add the last few remaining constants to stubs (#13751)

Basically all constants are now declared via stubs. The rest of the constants are either deprecated (`SID` or `MHASH_*`) or out of inte

Add the last few remaining constants to stubs (#13751)

Basically all constants are now declared via stubs. The rest of the constants are either deprecated (`SID` or `MHASH_*`) or out of interest (`__COMPILER_HALT_OFFSET__` and `PHP_CLI_PROCESS_TITLE`).

show more ...


# 5992a297 18-Mar-2024 Máté Kocsis

Improve BC support of arginfo files fenerated by gen_stub.php (#13705)

- Declared compatibility expectations of stub files are now enforced by a ZEND_STATIC_ASSERT call at the top of arginfo

Improve BC support of arginfo files fenerated by gen_stub.php (#13705)

- Declared compatibility expectations of stub files are now enforced by a ZEND_STATIC_ASSERT call at the top of arginfo files
- Property registration for PHP 7 is fixed: function zend_declare_property_ex() is used again instead of zend_declare_typed_property(). This has been a regression since I added support for exposing doc comments.
- As a defensive measure, deep cloning is performed before newer features (type declarations, attributes etc.) are discarded before generating legacy arginfo files. Until now, some of the objects were forgotten to be taken care of. These omissions may have resulted in some weird bugs in theory (but probably they didn't have much impact in practice).
- PHP version related conditions inside *non-legacy arginfo files* used to possibly check for the 70000 version iD until now if compatibility with PHP 7.0 was declared in a stub. This was not 100% correct, since non-legacy arginfo files are only for PHP 8.0+. Now, I made sure that at least PHP version ID 80000 is used in the preprocessor conditions. The solution was a bit tricky though...

show more ...


# 577db994 13-Mar-2024 Máté Kocsis

Verify stub aliases in CI (#13682)

In the same time, let's not verify implementation aliases since they may now legitimately differ from their aliased function/method counterparts (think abo

Verify stub aliases in CI (#13682)

In the same time, let's not verify implementation aliases since they may now legitimately differ from their aliased function/method counterparts (think about the ext/dom refactoring where e.g. many return type declarations have changed). Additionally, unnecessary `@no-verify` tags are cleaned up.

show more ...


# ec285ff6 05-Mar-2024 Máté Kocsis

Support multiple file-level phpdoc blocks in gen_stub.php

This allows writing the following:
/** @generate-class-entries */
/** @generate-legacy-arginfo 80000 */


# e84acc0e 25-Feb-2024 Máté Kocsis

Escape function names in optimizer function info


# f2e199e8 25-Feb-2024 Máté Kocsis

Implement "support doc comments for internal classes and functions" (#13266)

Fixes #13130


# 10957e49 18-Feb-2024 Máté Kocsis

Do not generate frameless info items when func info generation is disabled

While here, I fixed newlines around arginfo and function entry generation. Previously, newlines were repeated.


# 115c60e0 12-Feb-2024 Máté Kocsis

Validate constructor property promotion in stubs


# 631bc816 06-Feb-2024 Ilija Tovilo

Implement stackless internal function calls

Co-authored-by: Dmitry Stogov <dmitry@zend.com>

Closes GH-12461


# 281555d0 07-Jan-2024 Máté Kocsis

Migrate to the final version of PHP-Parser 5.0.0


# 02bca09b 27-Nov-2023 Máté Kocsis

Add class aliases into the classmap of gen_stub.php

Now that we have class aliases (DOMNode -> DOM\Node), it has become important to add them to the class map so that it will be possible to

Add class aliases into the classmap of gen_stub.php

Now that we have class aliases (DOMNode -> DOM\Node), it has become important to add them to the class map so that it will be possible to generate class synopses for them.

show more ...


# be2401ab 07-Nov-2023 Gina Peter Banyard

[skip ci] gen_stub: Fix final comment text generation


# 5d980694 31-Oct-2023 Gina Peter Banyard

[skip ci] gen_stub: Generate useful methodsynopsises for new functions/methods (#12330)

Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>


# 60a33af3 31-Oct-2023 Máté Kocsis

Fix validation of CLI arguments when a target manual directory has to be provided

Additionally, let's make sure that we don't try to process the stub files in the
manual target directory

Fix validation of CLI arguments when a target manual directory has to be provided

Additionally, let's make sure that we don't try to process the stub files in the
manual target directory. This comes with a slight performance benefit.

show more ...


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

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


# cc2a68e5 12-Sep-2023 Máté Kocsis

Fix predefined constant page synchonization


# 2cb4d006 05-Sep-2023 Máté Kocsis

Improve detection of predefined constants

In order to include constants documented at https://www.php.net/manual/en/reserved.constants.php, as well as constants which share the same varliste

Improve detection of predefined constants

In order to include constants documented at https://www.php.net/manual/en/reserved.constants.php, as well as constants which share the same varlistentry (just like what
https://www.php.net/manual/en/class.datetimeinterface.php#datetimeinterface.constants.atom does). In the same time, special constants like
true, false, null are excluded, since the manual uses their entity (&true;, &false, &null;, respectively), and gen_stub.php couldn't detect
them.

show more ...


# 0363dbfe 04-Sep-2023 Máté Kocsis

Add support for verifying and syncronizing predefined constants with the manual


# c5fb8b6a 01-Sep-2023 Máté Kocsis

Align class name detection to the new class synopsis format


12345678