diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php index 7ebe6bce936..4c94b72656e 100644 --- a/ext/imap/php_imap.stub.php +++ b/ext/imap/php_imap.stub.php @@ -551,7 +551,7 @@ namespace { function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {} - #if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) + #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) function imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false {} function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {} diff --git a/ext/imap/php_imap_arginfo.h b/ext/imap/php_imap_arginfo.h index fe283484746..e6d1ed4c921 100644 --- a/ext/imap/php_imap_arginfo.h +++ b/ext/imap/php_imap_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: eebef4c1eaf464b0ff093516cf13f1c33d7d0911 */ + * Stub hash: c1f54f259bde2c49c5b49a595751acd2fb365efe */ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_imap_open, 0, 3, IMAP\\Connection, MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0) @@ -292,21 +292,21 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_timeout, 0, 1, MAY_BE_LONG| ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1") ZEND_END_ARG_INFO() -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_get_quota, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_ARG_OBJ_INFO(0, imap, IMAP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, quota_root, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_get_quotaroot, 0, 2, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_ARG_OBJ_INFO(0, imap, IMAP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_set_quota, 0, 3, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, imap, IMAP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, quota_root, IS_STRING, 0) @@ -314,7 +314,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_set_quota, 0, 3, _IS_BOOL, ZEND_END_ARG_INFO() #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_setacl, 0, 4, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, imap, IMAP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0) @@ -323,7 +323,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_setacl, 0, 4, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) #define arginfo_imap_getacl arginfo_imap_get_quotaroot #endif @@ -403,19 +403,19 @@ ZEND_FUNCTION(imap_mutf7_to_utf8); ZEND_FUNCTION(imap_mime_header_decode); ZEND_FUNCTION(imap_thread); ZEND_FUNCTION(imap_timeout); -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FUNCTION(imap_get_quota); #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FUNCTION(imap_get_quotaroot); #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FUNCTION(imap_set_quota); #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FUNCTION(imap_setacl); #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FUNCTION(imap_getacl); #endif ZEND_FUNCTION(imap_mail); @@ -494,19 +494,19 @@ static const zend_function_entry ext_functions[] = { ZEND_FE(imap_mime_header_decode, arginfo_imap_mime_header_decode) ZEND_FE(imap_thread, arginfo_imap_thread) ZEND_FE(imap_timeout, arginfo_imap_timeout) -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FE(imap_get_quota, arginfo_imap_get_quota) #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FE(imap_get_quotaroot, arginfo_imap_get_quotaroot) #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FE(imap_set_quota, arginfo_imap_set_quota) #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FE(imap_setacl, arginfo_imap_setacl) #endif -#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) +#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)) ZEND_FE(imap_getacl, arginfo_imap_getacl) #endif ZEND_FE(imap_mail, arginfo_imap_mail) diff --git a/ext/ldap/ldap.stub.php b/ext/ldap/ldap.stub.php index 3b5aaae78a8..19deffccad9 100644 --- a/ext/ldap/ldap.stub.php +++ b/ext/ldap/ldap.stub.php @@ -751,7 +751,7 @@ namespace { #endif #endif - #if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) + #if (defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)) function ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback): bool {} #endif diff --git a/ext/ldap/ldap_arginfo.h b/ext/ldap/ldap_arginfo.h index 0fcc3446afa..e44f4f04176 100644 --- a/ext/ldap/ldap_arginfo.h +++ b/ext/ldap/ldap_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 470fcd62773b033ac200d7817b7917eee5bb812e */ + * Stub hash: 893c86a23c81c32d2c8a4b2ca14a785cd8a99a37 */ #if defined(HAVE_ORALDAP) ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE) @@ -267,7 +267,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_parse_result, 0, 3, _IS_BOO ZEND_END_ARG_INFO() #endif -#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) +#if (defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_ldap_set_rebind_proc, 0, 2, _IS_BOOL, 0) ZEND_ARG_OBJ_INFO(0, ldap, LDAP\\Connection, 0) ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1) @@ -410,7 +410,7 @@ ZEND_FUNCTION(ldap_parse_reference); #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT) ZEND_FUNCTION(ldap_parse_result); #endif -#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) +#if (defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)) ZEND_FUNCTION(ldap_set_rebind_proc); #endif #if defined(HAVE_LDAP_START_TLS_S) @@ -513,7 +513,7 @@ static const zend_function_entry ext_functions[] = { #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT) ZEND_FE(ldap_parse_result, arginfo_ldap_parse_result) #endif -#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC) +#if (defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)) ZEND_FE(ldap_set_rebind_proc, arginfo_ldap_set_rebind_proc) #endif #if defined(HAVE_LDAP_START_TLS_S) diff --git a/ext/odbc/odbc.stub.php b/ext/odbc/odbc.stub.php index 20cfe6ceffd..914a3aae283 100644 --- a/ext/odbc/odbc.stub.php +++ b/ext/odbc/odbc.stub.php @@ -215,7 +215,7 @@ const SQL_TIME = UNKNOWN; */ const SQL_TIMESTAMP = UNKNOWN; -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) /** * @var int * @cvalue SQL_TYPE_DATE diff --git a/ext/odbc/odbc_arginfo.h b/ext/odbc/odbc_arginfo.h index df3c7248f04..8d00ed2125e 100644 --- a/ext/odbc/odbc_arginfo.h +++ b/ext/odbc/odbc_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 06660ff7830809c9c11efc8edac13ebbb102b33c */ + * Stub hash: 64fbf9feef2929640a5e8615df6a085c504b7914 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0) ZEND_END_ARG_INFO() @@ -434,55 +434,55 @@ static void register_odbc_symbols(int module_number) REGISTER_LONG_CONSTANT("SQL_DATE", SQL_DATE, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_TIME", SQL_TIME, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_TIMESTAMP", SQL_TIMESTAMP, CONST_PERSISTENT); -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_TYPE_DATE", SQL_TYPE_DATE, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_TYPE_TIME", SQL_TYPE_TIME, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_TYPE_TIMESTAMP", SQL_TYPE_TIMESTAMP, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_WCHAR", SQL_WCHAR, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_WVARCHAR", SQL_WVARCHAR, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_WLONGVARCHAR", SQL_WLONGVARCHAR, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_BEST_ROWID", SQL_BEST_ROWID, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_ROWVER", SQL_ROWVER, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_SCOPE_CURROW", SQL_SCOPE_CURROW, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_SCOPE_TRANSACTION", SQL_SCOPE_TRANSACTION, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_SCOPE_SESSION", SQL_SCOPE_SESSION, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_NO_NULLS", SQL_NO_NULLS, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_NULLABLE", SQL_NULLABLE, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_INDEX_UNIQUE", SQL_INDEX_UNIQUE, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_INDEX_ALL", SQL_INDEX_ALL, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_ENSURE", SQL_ENSURE, CONST_PERSISTENT); #endif -#if defined(ODBCVER) && (ODBCVER >= 0x0300) +#if (defined(ODBCVER) && (ODBCVER >= 0x0300)) REGISTER_LONG_CONSTANT("SQL_QUICK", SQL_QUICK, CONST_PERSISTENT); #endif diff --git a/ext/sockets/sockets.stub.php b/ext/sockets/sockets.stub.php index 86492c8c2ae..997d3eb2f7e 100644 --- a/ext/sockets/sockets.stub.php +++ b/ext/sockets/sockets.stub.php @@ -1588,7 +1588,7 @@ const AI_NUMERICSERV = UNKNOWN; const SOL_LOCAL = UNKNOWN; #endif -#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 +#if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6) /** * IPv6 ancillary data * @var int @@ -1601,7 +1601,7 @@ const IPV6_RECVPKTINFO = UNKNOWN; */ const IPV6_PKTINFO = UNKNOWN; #endif -#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 +#if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6) /** * @var int * @cvalue IPV6_RECVHOPLIMIT @@ -1614,7 +1614,7 @@ const IPV6_RECVHOPLIMIT = UNKNOWN; const IPV6_HOPLIMIT = UNKNOWN; #endif -#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 +#if (defined(IPV6_RECVTCLASS) && HAVE_IPV6) /** * @var int * @cvalue IPV6_RECVTCLASS diff --git a/ext/sockets/sockets_arginfo.h b/ext/sockets/sockets_arginfo.h index 38da81269be..ff76685e2ae 100644 --- a/ext/sockets/sockets_arginfo.h +++ b/ext/sockets/sockets_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: f89c10cc9feb4c7c3d3fc5172412e9f0ffb476a4 */ + * Stub hash: c4fe33bd6d665f80be942c9cc9c0ce954d719c0d */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_socket_select, 0, 4, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(1, read, IS_ARRAY, 1) @@ -925,22 +925,22 @@ static void register_sockets_symbols(int module_number) #if defined(SOL_LOCAL) REGISTER_LONG_CONSTANT("SOL_LOCAL", SOL_LOCAL, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 +#if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_RECVPKTINFO", IPV6_RECVPKTINFO, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 +#if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_PKTINFO", IPV6_PKTINFO, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 +#if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_RECVHOPLIMIT", IPV6_RECVHOPLIMIT, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 +#if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_HOPLIMIT", IPV6_HOPLIMIT, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 +#if (defined(IPV6_RECVTCLASS) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_RECVTCLASS", IPV6_RECVTCLASS, CONST_PERSISTENT); #endif -#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 +#if (defined(IPV6_RECVTCLASS) && HAVE_IPV6) REGISTER_LONG_CONSTANT("IPV6_TCLASS", IPV6_TCLASS, CONST_PERSISTENT); #endif #if defined(SCM_RIGHTS) diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index 596f32b4e4b..f55e4e5b9d2 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -1340,7 +1340,7 @@ function gethostbyname(string $hostname): string {} */ function gethostbynamel(string $hostname): array|false {} -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) function dns_check_record(string $hostname, string $type = "MX"): bool {} /** @alias dns_check_record */ @@ -1370,7 +1370,7 @@ function getmxrr(string $hostname, &$hosts, &$weights = null): bool {} /* net.c */ -#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) +#if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)) function net_get_interfaces(): array|false {} #endif @@ -1769,7 +1769,7 @@ function closedir($dir_handle = null): void {} function chdir(string $directory): bool {} -#if defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC) +#if (defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC)) function chroot(string $directory): bool {} #endif @@ -2186,7 +2186,7 @@ function levenshtein(string $string1, string $string2, int $insertion_cost = 1, /* link.c */ -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) /** @refcount 1 */ function readlink(string $path): string|false {} @@ -2590,7 +2590,7 @@ function sapi_windows_vt100_support($stream, ?bool $enable = null): bool {} /** @param resource $stream */ function stream_set_chunk_size($stream, int $size): int {} -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) /** @param resource $stream */ function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool {} diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 570dbe9a85c..51879da2059 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 1921468762d3df7f36d22f27db02f22caa36238a */ + * Stub hash: 9c86ed1487132d15715ddbfcb5abd6ac52d629eb */ 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) @@ -632,18 +632,18 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_gethostbynamel, 0, 1, MAY_BE_ARR ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_END_ARG_INFO() -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dns_check_record, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"MX\"") ZEND_END_ARG_INFO() #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) #define arginfo_checkdnsrr arginfo_dns_check_record #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dns_get_record, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "DNS_ANY") @@ -653,7 +653,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dns_get_record, 0, 1, MAY_BE_ARR ZEND_END_ARG_INFO() #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dns_get_mx, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, hostname, IS_STRING, 0) ZEND_ARG_INFO(1, hosts) @@ -661,11 +661,11 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_dns_get_mx, 0, 2, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) #define arginfo_getmxrr arginfo_dns_get_mx #endif -#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) +#if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_net_get_interfaces, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE) ZEND_END_ARG_INFO() #endif @@ -1119,7 +1119,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_chdir, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0) ZEND_END_ARG_INFO() -#if defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC) +#if (defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_chroot, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0) ZEND_END_ARG_INFO() @@ -1573,26 +1573,26 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_levenshtein, 0, 2, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deletion_cost, IS_LONG, 0, "1") ZEND_END_ARG_INFO() -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_readlink, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_linkinfo, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_symlink, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, target, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, link, IS_STRING, 0) ZEND_END_ARG_INFO() #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) #define arginfo_link arginfo_symlink #endif @@ -2001,7 +2001,7 @@ ZEND_END_ARG_INFO() #define arginfo_stream_set_chunk_size arginfo_stream_set_write_buffer -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stream_set_timeout, 0, 2, _IS_BOOL, 0) ZEND_ARG_INFO(0, stream) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) @@ -2009,7 +2009,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stream_set_timeout, 0, 2, _IS_BO ZEND_END_ARG_INFO() #endif -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) #define arginfo_socket_set_timeout arginfo_stream_set_timeout #endif @@ -2380,16 +2380,16 @@ ZEND_FUNCTION(gethostname); ZEND_FUNCTION(gethostbyaddr); ZEND_FUNCTION(gethostbyname); ZEND_FUNCTION(gethostbynamel); -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FUNCTION(dns_check_record); #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FUNCTION(dns_get_record); #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FUNCTION(dns_get_mx); #endif -#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) +#if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)) ZEND_FUNCTION(net_get_interfaces); #endif #if defined(HAVE_FTOK) @@ -2509,7 +2509,7 @@ ZEND_FUNCTION(opendir); ZEND_FUNCTION(dir); ZEND_FUNCTION(closedir); ZEND_FUNCTION(chdir); -#if defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC) +#if (defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC)) ZEND_FUNCTION(chroot); #endif ZEND_FUNCTION(getcwd); @@ -2626,16 +2626,16 @@ ZEND_FUNCTION(php_ini_loaded_file); ZEND_FUNCTION(iptcembed); ZEND_FUNCTION(iptcparse); ZEND_FUNCTION(levenshtein); -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FUNCTION(readlink); #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FUNCTION(linkinfo); #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FUNCTION(symlink); #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FUNCTION(link); #endif ZEND_FUNCTION(mail); @@ -2753,7 +2753,7 @@ ZEND_FUNCTION(stream_isatty); ZEND_FUNCTION(sapi_windows_vt100_support); #endif ZEND_FUNCTION(stream_set_chunk_size); -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) ZEND_FUNCTION(stream_set_timeout); #endif ZEND_FUNCTION(gettype); @@ -3006,22 +3006,22 @@ static const zend_function_entry ext_functions[] = { ZEND_FE(gethostbyaddr, arginfo_gethostbyaddr) ZEND_FE(gethostbyname, arginfo_gethostbyname) ZEND_FE(gethostbynamel, arginfo_gethostbynamel) -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FE(dns_check_record, arginfo_dns_check_record) #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FALIAS(checkdnsrr, dns_check_record, arginfo_checkdnsrr) #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FE(dns_get_record, arginfo_dns_get_record) #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FE(dns_get_mx, arginfo_dns_get_mx) #endif -#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) +#if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC)) ZEND_FALIAS(getmxrr, dns_get_mx, arginfo_getmxrr) #endif -#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) +#if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__)) ZEND_FE(net_get_interfaces, arginfo_net_get_interfaces) #endif #if defined(HAVE_FTOK) @@ -3144,7 +3144,7 @@ static const zend_function_entry ext_functions[] = { ZEND_FE(dir, arginfo_dir) ZEND_FE(closedir, arginfo_closedir) ZEND_FE(chdir, arginfo_chdir) -#if defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC) +#if (defined(HAVE_CHROOT) && !defined(ZTS) && defined(ENABLE_CHROOT_FUNC)) ZEND_FE(chroot, arginfo_chroot) #endif ZEND_FE(getcwd, arginfo_getcwd) @@ -3264,16 +3264,16 @@ static const zend_function_entry ext_functions[] = { ZEND_FE(iptcembed, arginfo_iptcembed) ZEND_FE(iptcparse, arginfo_iptcparse) ZEND_FE(levenshtein, arginfo_levenshtein) -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FE(readlink, arginfo_readlink) #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FE(linkinfo, arginfo_linkinfo) #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FE(symlink, arginfo_symlink) #endif -#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) +#if (defined(HAVE_SYMLINK) || defined(PHP_WIN32)) ZEND_FE(link, arginfo_link) #endif ZEND_FE(mail, arginfo_mail) @@ -3394,10 +3394,10 @@ static const zend_function_entry ext_functions[] = { ZEND_FE(sapi_windows_vt100_support, arginfo_sapi_windows_vt100_support) #endif ZEND_FE(stream_set_chunk_size, arginfo_stream_set_chunk_size) -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) ZEND_FE(stream_set_timeout, arginfo_stream_set_timeout) #endif -#if defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32) +#if (defined(HAVE_SYS_TIME_H) || defined(PHP_WIN32)) ZEND_FALIAS(socket_set_timeout, stream_set_timeout, arginfo_socket_set_timeout) #endif ZEND_FE(gettype, arginfo_gettype) diff --git a/ext/standard/file.stub.php b/ext/standard/file.stub.php index bd7295567fd..72cf582b8f1 100644 --- a/ext/standard/file.stub.php +++ b/ext/standard/file.stub.php @@ -325,7 +325,7 @@ const STREAM_PF_UNIX = UNKNOWN; const STREAM_IPPROTO_IP = UNKNOWN; #endif -#if defined(IPPROTO_TCP) || defined(PHP_WIN32) +#if (defined(IPPROTO_TCP) || defined(PHP_WIN32)) /** * @var int * @cvalue IPPROTO_TCP @@ -333,7 +333,7 @@ const STREAM_IPPROTO_IP = UNKNOWN; const STREAM_IPPROTO_TCP = UNKNOWN; #endif -#if defined(IPPROTO_UDP) || defined(PHP_WIN32) +#if (defined(IPPROTO_UDP) || defined(PHP_WIN32)) /** * @var int * @cvalue IPPROTO_UDP @@ -341,7 +341,7 @@ const STREAM_IPPROTO_TCP = UNKNOWN; const STREAM_IPPROTO_UDP = UNKNOWN; #endif -#if defined(IPPROTO_ICMP) || defined(PHP_WIN32) +#if (defined(IPPROTO_ICMP) || defined(PHP_WIN32)) /** * @var int * @cvalue IPPROTO_ICMP @@ -349,7 +349,7 @@ const STREAM_IPPROTO_UDP = UNKNOWN; const STREAM_IPPROTO_ICMP = UNKNOWN; #endif -#if defined(IPPROTO_RAW) || defined(PHP_WIN32) +#if (defined(IPPROTO_RAW) || defined(PHP_WIN32)) /** * @var int * @cvalue IPPROTO_RAW diff --git a/ext/standard/file_arginfo.h b/ext/standard/file_arginfo.h index 783eb61bd27..ac619b7f00c 100644 --- a/ext/standard/file_arginfo.h +++ b/ext/standard/file_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: d472a7623af41d460417e6399ed829302b60e3c3 */ + * Stub hash: 38c6088c48d8f582ede1363855a867dc4aade34b */ @@ -78,16 +78,16 @@ static void register_file_symbols(int module_number) #if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_IP) REGISTER_LONG_CONSTANT("STREAM_IPPROTO_IP", IPPROTO_IP, CONST_PERSISTENT); #endif -#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_TCP) || defined(PHP_WIN32) +#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && (defined(IPPROTO_TCP) || defined(PHP_WIN32)) REGISTER_LONG_CONSTANT("STREAM_IPPROTO_TCP", IPPROTO_TCP, CONST_PERSISTENT); #endif -#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_UDP) || defined(PHP_WIN32) +#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && (defined(IPPROTO_UDP) || defined(PHP_WIN32)) REGISTER_LONG_CONSTANT("STREAM_IPPROTO_UDP", IPPROTO_UDP, CONST_PERSISTENT); #endif -#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_ICMP) || defined(PHP_WIN32) +#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && (defined(IPPROTO_ICMP) || defined(PHP_WIN32)) REGISTER_LONG_CONSTANT("STREAM_IPPROTO_ICMP", IPPROTO_ICMP, CONST_PERSISTENT); #endif -#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_RAW) || defined(PHP_WIN32) +#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && (defined(IPPROTO_RAW) || defined(PHP_WIN32)) REGISTER_LONG_CONSTANT("STREAM_IPPROTO_RAW", IPPROTO_RAW, CONST_PERSISTENT); #endif #if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX)