mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Update gen_stubs.php to generate C enums from internal enums, when the stub is annotated with @generate-c-enums. Enum values can be compared to the result of zend_enum_fetch_case_id(zend_object*).
The generated enums are added to separate files named {$extensionName}_decl.h, so that it's possible to include these from anywhere. _arginfo.h files would generate warnings if we tried to include them in a compilation unit that doesn't call the register_{$class} functions, for instance.
Introduce Z_PARAM_ENUM().
* Make ZEND_AST_CONST_ENUM_INIT a 4-children node
* Store enum case id in ZEND_AST_CONST_ENUM_INIT
* Store enum case id in instance
* Expose enum case_id internally
* Generate C enum for internal enums
* Introduce Z_PARAM_ENUM()
* Port extensions
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Replace $Id$ strings with 40-character hexadecimal blob object name.
|
|
/ext/ext_skel.php ident
|
|
/ext/phar/phar/pharcommand.inc ident
|
|
/ext/dba/libinifile/inifile.c ident
|
|
/ext/dba/libflatfile/flatfile.c ident
|
|
/ext/dba/libcdb/cdb_make.c ident
|
|
/ext/dba/libcdb/cdb.c ident
|
|
/run-tests.php ident
|
|
|
|
# A custom merge driver to avoid automatic merges. These are manually merged.
|
|
# See https://wiki.php.net/vcs/gitfaq
|
|
/NEWS merge=NEWS
|
|
/UPGRADING merge=NEWS
|
|
/UPGRADING.INTERNALS merge=NEWS
|
|
|
|
# Configure proper diff drivers to improve the context lines in the output
|
|
# of git diff and to improve token splitting for --word-diff.
|
|
*.phpt diff=php
|
|
*.php diff=php
|
|
*.[ch] diff=cpp
|
|
|
|
# Collapse generated files within git and pull request diff.
|
|
**/*_arginfo.h linguist-generated -diff
|
|
**/*_decl.h linguist-generated -diff
|
|
/main/debug_gdb_scripts.c linguist-generated -diff
|
|
/Zend/zend_vm_execute.h linguist-generated -diff
|
|
/Zend/zend_vm_handlers.h linguist-generated -diff
|
|
/Zend/zend_vm_opcodes.[ch] linguist-generated -diff
|
|
|
|
# The OSS fuzz files are binary
|
|
/ext/date/tests/ossfuzz*.txt binary
|
|
|
|
# Vendored libraries
|
|
/ext/lexbor/lexbor linguist-vendored
|
|
/ext/uri/uriparser linguist-vendored
|