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


# 597aeb12 30-Aug-2023 Máté Kocsis

Fix the class synopsis of Throwable

"ooexception" is rendered as a class, therefore interfaces should be marked up as "oointerface".


# 13d3564a 28-Aug-2023 Remi Collet

Fix #12063 convert PHP single-quote to C double-quote string


# c934e241 26-Dec-2022 Máté Kocsis

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


# e6627ccb 20-Aug-2023 Ayesh Karunaratne

gen_stub: fix regexps with unintentional range due to `-` character placement (#12004)


# 566cf37e 28-Jul-2023 Máté Kocsis

Use new class synopsis generating markup (#11809)


# 7b355e8d 04-Jul-2023 Ilija Tovilo

Revert "Merge branch 'PHP-8.2'"

This reverts commit 45a3f178dc226b69f5d72f10285bc2ad139b2c1c, reversing
changes made to b2a54bc6af4bf645b5bb2601621c12b31bfbff0c.


12345678