From b59f8c39d06f3d9dad4c6618ffef98ad80b58710 Mon Sep 17 00:00:00 2001 From: Dmytro Kulyk Date: Sun, 29 Mar 2026 14:39:07 +0300 Subject: [PATCH 1/2] Include `zend_attributes.h` conditionally based on attribute usage --- build/gen_stub.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 9aac6b23e78b..e731589cfc98 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -4553,7 +4553,7 @@ public function generateCDeclarations(): string { return $code; } - + /** * @param array $allConstInfos * @return array{string, string} @@ -4669,9 +4669,12 @@ function (FuncInfo $funcInfo) use (&$generatedFunctionDeclarations) { . "#endif /* {$headerName} */\n"; } + $shouldIncludeAttributes = preg_match('/zend_add_(class|function|parameter|property|class_constant|global_constant)_attribute\(/', $code); + $code = "/* This is a generated file, edit {$stubFilenameWithoutExtension}.stub.php instead.\n" . " * Stub hash: $stubHash" . ($hasDeclFile ? "\n * Has decl header: yes */\n" : " */\n") + . ($shouldIncludeAttributes ? "\n#include \"zend_attributes.h\"\n" : "") . $code; return [$code, $declCode]; From aea684a5dbbfd7bc118bf0372af53dc907194c21 Mon Sep 17 00:00:00 2001 From: Dmytro Kulyk Date: Sun, 29 Mar 2026 14:39:43 +0300 Subject: [PATCH 2/2] Regenerated stubs --- Zend/zend_attributes_arginfo.h | 2 ++ Zend/zend_builtin_functions_arginfo.h | 2 ++ Zend/zend_constants_arginfo.h | 2 ++ ext/curl/curl_arginfo.h | 2 ++ ext/date/php_date_arginfo.h | 2 ++ ext/dom/php_dom_arginfo.h | 2 ++ ext/enchant/enchant_arginfo.h | 2 ++ ext/fileinfo/fileinfo_arginfo.h | 2 ++ ext/filter/filter_arginfo.h | 2 ++ ext/ftp/ftp_arginfo.h | 2 ++ ext/gd/gd_arginfo.h | 2 ++ ext/hash/hash_arginfo.h | 2 ++ ext/intl/common/common_arginfo.h | 2 ++ ext/intl/formatter/formatter_arginfo.h | 2 ++ ext/intl/php_intl_arginfo.h | 2 ++ ext/ldap/ldap_arginfo.h | 2 ++ ext/libxml/libxml_arginfo.h | 2 ++ ext/mysqli/mysqli_arginfo.h | 2 ++ ext/odbc/odbc_arginfo.h | 2 ++ ext/openssl/openssl_arginfo.h | 2 ++ ext/pdo/pdo_dbh_arginfo.h | 2 ++ ext/pdo_pgsql/pdo_pgsql_arginfo.h | 2 ++ ext/pgsql/pgsql_arginfo.h | 2 ++ ext/random/random_arginfo.h | 2 ++ ext/reflection/php_reflection_arginfo.h | 2 ++ ext/shmop/shmop_arginfo.h | 2 ++ ext/soap/soap_arginfo.h | 2 ++ ext/sodium/libsodium_arginfo.h | 2 ++ ext/spl/spl_directory_arginfo.h | 2 ++ ext/spl/spl_fixedarray_arginfo.h | 2 ++ ext/spl/spl_observer_arginfo.h | 2 ++ ext/standard/basic_functions_arginfo.h | 2 ++ ext/standard/file_arginfo.h | 2 ++ ext/uri/php_uri_arginfo.h | 2 ++ ext/xml/xml_arginfo.h | 2 ++ ext/zend_test/test_arginfo.h | 2 ++ ext/zip/php_zip_arginfo.h | 2 ++ 37 files changed, 74 insertions(+) diff --git a/Zend/zend_attributes_arginfo.h b/Zend/zend_attributes_arginfo.h index 54a66af29966..7ed55b213862 100644 --- a/Zend/zend_attributes_arginfo.h +++ b/Zend/zend_attributes_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit zend_attributes.stub.php instead. * Stub hash: b868cb33f41d9442f42d0cec84e33fcc09f5d88c */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Attribute___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "Attribute::TARGET_ALL") ZEND_END_ARG_INFO() diff --git a/Zend/zend_builtin_functions_arginfo.h b/Zend/zend_builtin_functions_arginfo.h index cb626ff430e6..ce084f4db643 100644 --- a/Zend/zend_builtin_functions_arginfo.h +++ b/Zend/zend_builtin_functions_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit zend_builtin_functions.stub.php instead. * Stub hash: 9b49f527064695c812cd204d9efc63c13681d942 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_clone, 0, 1, IS_OBJECT, 0) ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, withProperties, IS_ARRAY, 0, "[]") diff --git a/Zend/zend_constants_arginfo.h b/Zend/zend_constants_arginfo.h index b10adc02d28a..297bb0f2c9ce 100644 --- a/Zend/zend_constants_arginfo.h +++ b/Zend/zend_constants_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit zend_constants.stub.php instead. * Stub hash: 569ccba4e0a93a9ce49c81c76955413188df390e */ +#include "zend_attributes.h" + static void register_zend_constants_symbols(int module_number) { REGISTER_LONG_CONSTANT("E_ERROR", E_ERROR, CONST_PERSISTENT); diff --git a/ext/curl/curl_arginfo.h b/ext/curl/curl_arginfo.h index 6fb17ed029e3..66ed2dcda457 100644 --- a/ext/curl/curl_arginfo.h +++ b/ext/curl/curl_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit curl.stub.php instead. * Stub hash: 10ebdc94560ed19ecd6b61a11b3dab5d32989d66 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_curl_close, 0, 1, IS_VOID, 0) ZEND_ARG_OBJ_INFO(0, handle, CurlHandle, 0) ZEND_END_ARG_INFO() diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h index 4a5a4ad32dec..f73406b3d9f1 100644 --- a/ext/date/php_date_arginfo.h +++ b/ext/date/php_date_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit php_date.stub.php instead. * Stub hash: 8556e1b5f05ae9f78200f05f01d9f8e815cba49d */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, datetime, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, baseTimestamp, IS_LONG, 1, "null") diff --git a/ext/dom/php_dom_arginfo.h b/ext/dom/php_dom_arginfo.h index 1c90f920cdd8..36f89b55a173 100644 --- a/ext/dom/php_dom_arginfo.h +++ b/ext/dom/php_dom_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: e00668999f4fe9afee1f78f6986467a315f831a5 * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_dom_import_simplexml, 0, 1, DOMAttr|DOMElement, 0) ZEND_ARG_TYPE_INFO(0, node, IS_OBJECT, 0) ZEND_END_ARG_INFO() diff --git a/ext/enchant/enchant_arginfo.h b/ext/enchant/enchant_arginfo.h index 39e7e577bf9a..6a89df45968d 100644 --- a/ext/enchant/enchant_arginfo.h +++ b/ext/enchant/enchant_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit enchant.stub.php instead. * Stub hash: 31974eb901477da53ede7476953d461d32f772ba */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_enchant_broker_init, 0, 0, EnchantBroker, MAY_BE_FALSE) ZEND_END_ARG_INFO() diff --git a/ext/fileinfo/fileinfo_arginfo.h b/ext/fileinfo/fileinfo_arginfo.h index 4dd001ca05b6..9f1dcbb5c2e2 100644 --- a/ext/fileinfo/fileinfo_arginfo.h +++ b/ext/fileinfo/fileinfo_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit fileinfo.stub.php instead. * Stub hash: 311d1049e32af017b44e260a00f13830714b1e96 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_finfo_open, 0, 0, finfo, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "FILEINFO_NONE") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, magic_database, IS_STRING, 1, "null") diff --git a/ext/filter/filter_arginfo.h b/ext/filter/filter_arginfo.h index 4e24ede41a63..f923f74a0e98 100644 --- a/ext/filter/filter_arginfo.h +++ b/ext/filter/filter_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit filter.stub.php instead. * Stub hash: c3eb55dfec619af1e46be206f51a2b0893ed399f */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_filter_has_var, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, input_type, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, var_name, IS_STRING, 0) diff --git a/ext/ftp/ftp_arginfo.h b/ext/ftp/ftp_arginfo.h index edb0b4b8a91b..6721605d3aaa 100644 --- a/ext/ftp/ftp_arginfo.h +++ b/ext/ftp/ftp_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit ftp.stub.php instead. * Stub hash: 29606d7114a0698b8ae231173a624b17c196ffec */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ftp_connect, 0, 1, FTP\\Connection, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, port, IS_LONG, 0, "21") diff --git a/ext/gd/gd_arginfo.h b/ext/gd/gd_arginfo.h index 6b6327fd682f..7c5eaf8bce69 100644 --- a/ext/gd/gd_arginfo.h +++ b/ext/gd/gd_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit gd.stub.php instead. * Stub hash: 2cdc0b485d9b62bb9021973d3c8cce0169b21ac0 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gd_info, 0, 0, IS_ARRAY, 0) ZEND_END_ARG_INFO() diff --git a/ext/hash/hash_arginfo.h b/ext/hash/hash_arginfo.h index 798bf66dc33c..cf332d95eee3 100644 --- a/ext/hash/hash_arginfo.h +++ b/ext/hash/hash_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit hash.stub.php instead. * Stub hash: b0fe91da9b0469b44a9647b774b9b00498592e30 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hash, 0, 2, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0) diff --git a/ext/intl/common/common_arginfo.h b/ext/intl/common/common_arginfo.h index 2a15cccab892..713e0bcc2ff1 100644 --- a/ext/intl/common/common_arginfo.h +++ b/ext/intl/common/common_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit common.stub.php instead. * Stub hash: 9ed8bfc955a557c02171ec12b4634c60c6fb513e */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_IntlIterator_current, 0, 0, IS_MIXED, 0) ZEND_END_ARG_INFO() diff --git a/ext/intl/formatter/formatter_arginfo.h b/ext/intl/formatter/formatter_arginfo.h index d3d29f70168d..fb3e3619ad50 100644 --- a/ext/intl/formatter/formatter_arginfo.h +++ b/ext/intl/formatter/formatter_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit formatter.stub.php instead. * Stub hash: d886941aa76837aed1da08845dbaff9442107203 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_NumberFormatter___construct, 0, 0, 2) ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, style, IS_LONG, 0) diff --git a/ext/intl/php_intl_arginfo.h b/ext/intl/php_intl_arginfo.h index 81160349980c..097262a0827e 100644 --- a/ext/intl/php_intl_arginfo.h +++ b/ext/intl/php_intl_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit php_intl.stub.php instead. * Stub hash: c52fd0def2530be628beedbbcdcfecdcb07449a8 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1) ZEND_ARG_OBJ_TYPE_MASK(0, timezone, IntlTimeZone|DateTimeZone, MAY_BE_STRING|MAY_BE_NULL, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, locale, IS_STRING, 1, "null") diff --git a/ext/ldap/ldap_arginfo.h b/ext/ldap/ldap_arginfo.h index 8f5e7e34ba32..b241b8ed113e 100644 --- a/ext/ldap/ldap_arginfo.h +++ b/ext/ldap/ldap_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit ldap.stub.php instead. * Stub hash: 0dde8fd813f43640dee842c03365d7431858a56d */ +#include "zend_attributes.h" + #if defined(HAVE_ORALDAP) ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uri, IS_STRING, 1, "null") diff --git a/ext/libxml/libxml_arginfo.h b/ext/libxml/libxml_arginfo.h index 24459da5c0cb..f359eb4e2530 100644 --- a/ext/libxml/libxml_arginfo.h +++ b/ext/libxml/libxml_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit libxml.stub.php instead. * Stub hash: 6dceb619736a3de55b84609a9e3aeb13405bbfde */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_libxml_set_streams_context, 0, 1, IS_VOID, 0) ZEND_ARG_INFO(0, context) ZEND_END_ARG_INFO() diff --git a/ext/mysqli/mysqli_arginfo.h b/ext/mysqli/mysqli_arginfo.h index 4439908e55dc..1a3d112bbd53 100644 --- a/ext/mysqli/mysqli_arginfo.h +++ b/ext/mysqli/mysqli_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit mysqli.stub.php instead. * Stub hash: c0af8c627a063fbd2c8b76c63b5e70c8ddd1e4f9 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING) ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0) ZEND_END_ARG_INFO() diff --git a/ext/odbc/odbc_arginfo.h b/ext/odbc/odbc_arginfo.h index badd1400148d..edc067b55a6d 100644 --- a/ext/odbc/odbc_arginfo.h +++ b/ext/odbc/odbc_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit odbc.stub.php instead. * Stub hash: f9ba28767b256dbcea087a65aa4bb5f5b509d6f3 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0) ZEND_END_ARG_INFO() diff --git a/ext/openssl/openssl_arginfo.h b/ext/openssl/openssl_arginfo.h index bae435e90241..fef024b51a18 100644 --- a/ext/openssl/openssl_arginfo.h +++ b/ext/openssl/openssl_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit openssl.stub.php instead. * Stub hash: 8233a8abc8ab7145d905d0fa51478edfe1e55a06 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_x509_export_to_file, 0, 2, _IS_BOOL, 0) ZEND_ARG_OBJ_TYPE_MASK(0, certificate, OpenSSLCertificate, MAY_BE_STRING, NULL) ZEND_ARG_TYPE_INFO(0, output_filename, IS_STRING, 0) diff --git a/ext/pdo/pdo_dbh_arginfo.h b/ext/pdo/pdo_dbh_arginfo.h index 90da5123a487..1e4cc4328b9b 100644 --- a/ext/pdo/pdo_dbh_arginfo.h +++ b/ext/pdo/pdo_dbh_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit pdo_dbh.stub.php instead. * Stub hash: 006be61b2c519e7d9ca997a7f12135eb3e0f3500 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_PDO___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, dsn, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, username, IS_STRING, 1, "null") diff --git a/ext/pdo_pgsql/pdo_pgsql_arginfo.h b/ext/pdo_pgsql/pdo_pgsql_arginfo.h index 80e87862b08b..eef47d0a3887 100644 --- a/ext/pdo_pgsql/pdo_pgsql_arginfo.h +++ b/ext/pdo_pgsql/pdo_pgsql_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit pdo_pgsql.stub.php instead. * Stub hash: 0ea21010467d661416f0858f2bda095583ea3a36 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Pgsql_escapeIdentifier, 0, 1, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, input, IS_STRING, 0) ZEND_END_ARG_INFO() diff --git a/ext/pgsql/pgsql_arginfo.h b/ext/pgsql/pgsql_arginfo.h index 63a1d185d535..5af4014d0869 100644 --- a/ext/pgsql/pgsql_arginfo.h +++ b/ext/pgsql/pgsql_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit pgsql.stub.php instead. * Stub hash: f25b5a574c96d4bc2f08b8cacab16f499a164a6b */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_pg_connect, 0, 1, PgSql\\Connection, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, connection_string, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0") diff --git a/ext/random/random_arginfo.h b/ext/random/random_arginfo.h index 8332fdc41fd4..245cdc52c4da 100644 --- a/ext/random/random_arginfo.h +++ b/ext/random/random_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: 245fb5b66e540814c8595a06182886aee3e32f2c * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_lcg_value, 0, 0, IS_DOUBLE, 0) ZEND_END_ARG_INFO() diff --git a/ext/reflection/php_reflection_arginfo.h b/ext/reflection/php_reflection_arginfo.h index 66605a22bbd6..024fa15e52e0 100644 --- a/ext/reflection/php_reflection_arginfo.h +++ b/ext/reflection/php_reflection_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: 267472e2b726ca5e788eb5cc3e946bc9aa7c9c41 * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Reflection_getModifierNames, 0, 1, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO(0, modifiers, IS_LONG, 0) ZEND_END_ARG_INFO() diff --git a/ext/shmop/shmop_arginfo.h b/ext/shmop/shmop_arginfo.h index 9d88fe63c32b..464a6a462ae3 100644 --- a/ext/shmop/shmop_arginfo.h +++ b/ext/shmop/shmop_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit shmop.stub.php instead. * Stub hash: e7f250077b6721539caee96afe4ed392396018f9 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_shmop_open, 0, 4, Shmop, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0) ZEND_ARG_TYPE_INFO(0, mode, IS_STRING, 0) diff --git a/ext/soap/soap_arginfo.h b/ext/soap/soap_arginfo.h index 2f7d56ca4221..a550a9c02cc2 100644 --- a/ext/soap/soap_arginfo.h +++ b/ext/soap/soap_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit soap.stub.php instead. * Stub hash: 14c74a5d6f547837f536920d5abb741e2b6e4373 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_use_soap_error_handler, 0, 0, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enable, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() diff --git a/ext/sodium/libsodium_arginfo.h b/ext/sodium/libsodium_arginfo.h index 1b291e9a2330..8b32f7ddcc0a 100644 --- a/ext/sodium/libsodium_arginfo.h +++ b/ext/sodium/libsodium_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit libsodium.stub.php instead. * Stub hash: 7b337a297ae333dd8d0c232979b770332c9e7eb6 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() diff --git a/ext/spl/spl_directory_arginfo.h b/ext/spl/spl_directory_arginfo.h index 16860be558d7..f62c19282a57 100644 --- a/ext/spl/spl_directory_arginfo.h +++ b/ext/spl/spl_directory_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit spl_directory.stub.php instead. * Stub hash: 802429d736404c2d66601f640942c827b6e6e94b */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplFileInfo___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO() diff --git a/ext/spl/spl_fixedarray_arginfo.h b/ext/spl/spl_fixedarray_arginfo.h index 1c5545ab3e52..2f2a264fe621 100644 --- a/ext/spl/spl_fixedarray_arginfo.h +++ b/ext/spl/spl_fixedarray_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit spl_fixedarray.stub.php instead. * Stub hash: 0c838fed60b29671fe04e63315ab662d8cb16f0c */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplFixedArray___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size, IS_LONG, 0, "0") ZEND_END_ARG_INFO() diff --git a/ext/spl/spl_observer_arginfo.h b/ext/spl/spl_observer_arginfo.h index 142c400bcfe8..14ba7ef995db 100644 --- a/ext/spl/spl_observer_arginfo.h +++ b/ext/spl/spl_observer_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit spl_observer.stub.php instead. * Stub hash: 9dfd8bcf8946cbee550c9a46da07c424c3505408 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObserver_update, 0, 1, IS_VOID, 0) ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0) ZEND_END_ARG_INFO() diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index d0109fa27c96..14345ed57200 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: f5583557f058e4862750d1262296d7f59cb0eed0 * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) ZEND_END_ARG_INFO() diff --git a/ext/standard/file_arginfo.h b/ext/standard/file_arginfo.h index b3888925ee9a..b492145c63ce 100644 --- a/ext/standard/file_arginfo.h +++ b/ext/standard/file_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit file.stub.php instead. * Stub hash: c394e14cd32587ce9ad0503e21c6c4cf5b301697 */ +#include "zend_attributes.h" + static void register_file_symbols(int module_number) { REGISTER_LONG_CONSTANT("SEEK_SET", SEEK_SET, CONST_PERSISTENT); diff --git a/ext/uri/php_uri_arginfo.h b/ext/uri/php_uri_arginfo.h index 18d7f4adf783..0c4f7419fb83 100644 --- a/ext/uri/php_uri_arginfo.h +++ b/ext/uri/php_uri_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: 3c228f4227e7543be5c12c99074789d92c27ab99 * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Uri_Rfc3986_Uri_parse, 0, 1, IS_STATIC, 1) ZEND_ARG_TYPE_INFO(0, uri, IS_STRING, 0) ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, baseUrl, Uri\\Rfc3986\\\125ri, 1, "null") diff --git a/ext/xml/xml_arginfo.h b/ext/xml/xml_arginfo.h index 96430aef12bd..024e97f630a8 100644 --- a/ext/xml/xml_arginfo.h +++ b/ext/xml/xml_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit xml.stub.php instead. * Stub hash: c7838fb209d601be280dfdebfd135906afa36e8c */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_xml_parser_create, 0, 0, XMLParser, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_STRING, 1, "null") ZEND_END_ARG_INFO() diff --git a/ext/zend_test/test_arginfo.h b/ext/zend_test/test_arginfo.h index 30297234fc87..632718f4aff9 100644 --- a/ext/zend_test/test_arginfo.h +++ b/ext/zend_test/test_arginfo.h @@ -2,6 +2,8 @@ * Stub hash: 46178f5fa88681da91d831250f2f00c45e914624 * Has decl header: yes */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_trigger_bailout, 0, 0, IS_NEVER, 0) ZEND_END_ARG_INFO() diff --git a/ext/zip/php_zip_arginfo.h b/ext/zip/php_zip_arginfo.h index 89dd33b6f1a0..8ea1a322669e 100644 --- a/ext/zip/php_zip_arginfo.h +++ b/ext/zip/php_zip_arginfo.h @@ -1,6 +1,8 @@ /* This is a generated file, edit php_zip.stub.php instead. * Stub hash: e04b3e90c42074ac364ea25a0e794815bd4271e5 */ +#include "zend_attributes.h" + ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO()