Add parenthesis around preprocessor conditions in stubs

gen_stub.php concatenates nested #ifs into one #if so let's make sure the semantics remain the same.
This commit is contained in:
Máté Kocsis 2022-09-02 16:15:06 +02:00
parent cfa72ff3af
commit e733ebf30e
No known key found for this signature in database
GPG key ID: FD055E41728BF310
12 changed files with 102 additions and 102 deletions

View file

@ -551,7 +551,7 @@ namespace {
function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {} 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_quota(IMAP\Connection $imap, string $quota_root): array|false {}
function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {} function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {}

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_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) 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_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "-1")
ZEND_END_ARG_INFO() 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_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_OBJ_INFO(0, imap, IMAP\\Connection, 0)
ZEND_ARG_TYPE_INFO(0, quota_root, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, quota_root, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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_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_OBJ_INFO(0, imap, IMAP\\Connection, 0)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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_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_OBJ_INFO(0, imap, IMAP\\Connection, 0)
ZEND_ARG_TYPE_INFO(0, quota_root, IS_STRING, 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() ZEND_END_ARG_INFO()
#endif #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_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_OBJ_INFO(0, imap, IMAP\\Connection, 0)
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 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() ZEND_END_ARG_INFO()
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
#define arginfo_imap_getacl arginfo_imap_get_quotaroot #define arginfo_imap_getacl arginfo_imap_get_quotaroot
#endif #endif
@ -403,19 +403,19 @@ ZEND_FUNCTION(imap_mutf7_to_utf8);
ZEND_FUNCTION(imap_mime_header_decode); ZEND_FUNCTION(imap_mime_header_decode);
ZEND_FUNCTION(imap_thread); ZEND_FUNCTION(imap_thread);
ZEND_FUNCTION(imap_timeout); ZEND_FUNCTION(imap_timeout);
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FUNCTION(imap_get_quota); ZEND_FUNCTION(imap_get_quota);
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FUNCTION(imap_get_quotaroot); ZEND_FUNCTION(imap_get_quotaroot);
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FUNCTION(imap_set_quota); ZEND_FUNCTION(imap_set_quota);
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FUNCTION(imap_setacl); ZEND_FUNCTION(imap_setacl);
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FUNCTION(imap_getacl); ZEND_FUNCTION(imap_getacl);
#endif #endif
ZEND_FUNCTION(imap_mail); 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_mime_header_decode, arginfo_imap_mime_header_decode)
ZEND_FE(imap_thread, arginfo_imap_thread) ZEND_FE(imap_thread, arginfo_imap_thread)
ZEND_FE(imap_timeout, arginfo_imap_timeout) 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) ZEND_FE(imap_get_quota, arginfo_imap_get_quota)
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FE(imap_get_quotaroot, arginfo_imap_get_quotaroot) ZEND_FE(imap_get_quotaroot, arginfo_imap_get_quotaroot)
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FE(imap_set_quota, arginfo_imap_set_quota) ZEND_FE(imap_set_quota, arginfo_imap_set_quota)
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FE(imap_setacl, arginfo_imap_setacl) ZEND_FE(imap_setacl, arginfo_imap_setacl)
#endif #endif
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001) #if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
ZEND_FE(imap_getacl, arginfo_imap_getacl) ZEND_FE(imap_getacl, arginfo_imap_getacl)
#endif #endif
ZEND_FE(imap_mail, arginfo_imap_mail) ZEND_FE(imap_mail, arginfo_imap_mail)

View file

@ -751,7 +751,7 @@ namespace {
#endif #endif
#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 {} function ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback): bool {}
#endif #endif

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* This is a generated file, edit the .stub.php file instead.
* Stub hash: 470fcd62773b033ac200d7817b7917eee5bb812e */ * Stub hash: 893c86a23c81c32d2c8a4b2ca14a785cd8a99a37 */
#if defined(HAVE_ORALDAP) #if defined(HAVE_ORALDAP)
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_ldap_connect, 0, 0, LDAP\\Connection, MAY_BE_FALSE) 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() ZEND_END_ARG_INFO()
#endif #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_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_OBJ_INFO(0, ldap, LDAP\\Connection, 0)
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1) 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) #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT)
ZEND_FUNCTION(ldap_parse_result); ZEND_FUNCTION(ldap_parse_result);
#endif #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); ZEND_FUNCTION(ldap_set_rebind_proc);
#endif #endif
#if defined(HAVE_LDAP_START_TLS_S) #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) #if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP) && defined(HAVE_LDAP_PARSE_RESULT)
ZEND_FE(ldap_parse_result, arginfo_ldap_parse_result) ZEND_FE(ldap_parse_result, arginfo_ldap_parse_result)
#endif #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) ZEND_FE(ldap_set_rebind_proc, arginfo_ldap_set_rebind_proc)
#endif #endif
#if defined(HAVE_LDAP_START_TLS_S) #if defined(HAVE_LDAP_START_TLS_S)

View file

@ -215,7 +215,7 @@ const SQL_TIME = UNKNOWN;
*/ */
const SQL_TIMESTAMP = UNKNOWN; const SQL_TIMESTAMP = UNKNOWN;
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
/** /**
* @var int * @var int
* @cvalue SQL_TYPE_DATE * @cvalue SQL_TYPE_DATE

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO() 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_DATE", SQL_DATE, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SQL_TIME", SQL_TIME, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_TIME", SQL_TIME, CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("SQL_TIMESTAMP", SQL_TIMESTAMP, 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); REGISTER_LONG_CONSTANT("SQL_TYPE_DATE", SQL_TYPE_DATE, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_TYPE_TIME", SQL_TYPE_TIME, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_TYPE_TIME", SQL_TYPE_TIME, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_TYPE_TIMESTAMP", SQL_TYPE_TIMESTAMP, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_TYPE_TIMESTAMP", SQL_TYPE_TIMESTAMP, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_WCHAR", SQL_WCHAR, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_WCHAR", SQL_WCHAR, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_WVARCHAR", SQL_WVARCHAR, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_WVARCHAR", SQL_WVARCHAR, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_WLONGVARCHAR", SQL_WLONGVARCHAR, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_WLONGVARCHAR", SQL_WLONGVARCHAR, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_BEST_ROWID", SQL_BEST_ROWID, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_BEST_ROWID", SQL_BEST_ROWID, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_ROWVER", SQL_ROWVER, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_ROWVER", SQL_ROWVER, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_SCOPE_CURROW", SQL_SCOPE_CURROW, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_SCOPE_CURROW", SQL_SCOPE_CURROW, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_SCOPE_TRANSACTION", SQL_SCOPE_TRANSACTION, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_SCOPE_TRANSACTION", SQL_SCOPE_TRANSACTION, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_SCOPE_SESSION", SQL_SCOPE_SESSION, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_SCOPE_SESSION", SQL_SCOPE_SESSION, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_NO_NULLS", SQL_NO_NULLS, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_NO_NULLS", SQL_NO_NULLS, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_NULLABLE", SQL_NULLABLE, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_NULLABLE", SQL_NULLABLE, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_INDEX_UNIQUE", SQL_INDEX_UNIQUE, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_INDEX_UNIQUE", SQL_INDEX_UNIQUE, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_INDEX_ALL", SQL_INDEX_ALL, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_INDEX_ALL", SQL_INDEX_ALL, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_ENSURE", SQL_ENSURE, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_ENSURE", SQL_ENSURE, CONST_PERSISTENT);
#endif #endif
#if defined(ODBCVER) && (ODBCVER >= 0x0300) #if (defined(ODBCVER) && (ODBCVER >= 0x0300))
REGISTER_LONG_CONSTANT("SQL_QUICK", SQL_QUICK, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SQL_QUICK", SQL_QUICK, CONST_PERSISTENT);
#endif #endif

View file

@ -1588,7 +1588,7 @@ const AI_NUMERICSERV = UNKNOWN;
const SOL_LOCAL = UNKNOWN; const SOL_LOCAL = UNKNOWN;
#endif #endif
#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 #if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6)
/** /**
* IPv6 ancillary data * IPv6 ancillary data
* @var int * @var int
@ -1601,7 +1601,7 @@ const IPV6_RECVPKTINFO = UNKNOWN;
*/ */
const IPV6_PKTINFO = UNKNOWN; const IPV6_PKTINFO = UNKNOWN;
#endif #endif
#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 #if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6)
/** /**
* @var int * @var int
* @cvalue IPV6_RECVHOPLIMIT * @cvalue IPV6_RECVHOPLIMIT
@ -1614,7 +1614,7 @@ const IPV6_RECVHOPLIMIT = UNKNOWN;
const IPV6_HOPLIMIT = UNKNOWN; const IPV6_HOPLIMIT = UNKNOWN;
#endif #endif
#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 #if (defined(IPV6_RECVTCLASS) && HAVE_IPV6)
/** /**
* @var int * @var int
* @cvalue IPV6_RECVTCLASS * @cvalue IPV6_RECVTCLASS

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_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) 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) #if defined(SOL_LOCAL)
REGISTER_LONG_CONSTANT("SOL_LOCAL", SOL_LOCAL, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("SOL_LOCAL", SOL_LOCAL, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 #if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_RECVPKTINFO", IPV6_RECVPKTINFO, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_RECVPKTINFO", IPV6_RECVPKTINFO, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6 #if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_PKTINFO", IPV6_PKTINFO, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_PKTINFO", IPV6_PKTINFO, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 #if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_RECVHOPLIMIT", IPV6_RECVHOPLIMIT, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_RECVHOPLIMIT", IPV6_RECVHOPLIMIT, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6 #if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_HOPLIMIT", IPV6_HOPLIMIT, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_HOPLIMIT", IPV6_HOPLIMIT, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 #if (defined(IPV6_RECVTCLASS) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_RECVTCLASS", IPV6_RECVTCLASS, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_RECVTCLASS", IPV6_RECVTCLASS, CONST_PERSISTENT);
#endif #endif
#if defined(IPV6_RECVTCLASS) && HAVE_IPV6 #if (defined(IPV6_RECVTCLASS) && HAVE_IPV6)
REGISTER_LONG_CONSTANT("IPV6_TCLASS", IPV6_TCLASS, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("IPV6_TCLASS", IPV6_TCLASS, CONST_PERSISTENT);
#endif #endif
#if defined(SCM_RIGHTS) #if defined(SCM_RIGHTS)

View file

@ -1340,7 +1340,7 @@ function gethostbyname(string $hostname): string {}
*/ */
function gethostbynamel(string $hostname): array|false {} 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 {} function dns_check_record(string $hostname, string $type = "MX"): bool {}
/** @alias dns_check_record */ /** @alias dns_check_record */
@ -1370,7 +1370,7 @@ function getmxrr(string $hostname, &$hosts, &$weights = null): bool {}
/* net.c */ /* net.c */
#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) #if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__))
function net_get_interfaces(): array|false {} function net_get_interfaces(): array|false {}
#endif #endif
@ -1769,7 +1769,7 @@ function closedir($dir_handle = null): void {}
function chdir(string $directory): bool {} 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 {} function chroot(string $directory): bool {}
#endif #endif
@ -2186,7 +2186,7 @@ function levenshtein(string $string1, string $string2, int $insertion_cost = 1,
/* link.c */ /* link.c */
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
/** @refcount 1 */ /** @refcount 1 */
function readlink(string $path): string|false {} function readlink(string $path): string|false {}
@ -2590,7 +2590,7 @@ function sapi_windows_vt100_support($stream, ?bool $enable = null): bool {}
/** @param resource $stream */ /** @param resource $stream */
function stream_set_chunk_size($stream, int $size): int {} 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 */ /** @param resource $stream */
function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool {} function stream_set_timeout($stream, int $seconds, int $microseconds = 0): bool {}

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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_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_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_ARG_TYPE_INFO(0, hostname, IS_STRING, 0)
ZEND_END_ARG_INFO() 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_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(0, hostname, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"MX\"") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 0, "\"MX\"")
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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 #define arginfo_checkdnsrr arginfo_dns_check_record
#endif #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_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(0, hostname, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_LONG, 0, "DNS_ANY") 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() ZEND_END_ARG_INFO()
#endif #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_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_TYPE_INFO(0, hostname, IS_STRING, 0)
ZEND_ARG_INFO(1, hosts) 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() ZEND_END_ARG_INFO()
#endif #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 #define arginfo_getmxrr arginfo_dns_get_mx
#endif #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_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_net_get_interfaces, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_END_ARG_INFO() 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_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_chroot, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, directory, IS_STRING, 0)
ZEND_END_ARG_INFO() 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_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, deletion_cost, IS_LONG, 0, "1")
ZEND_END_ARG_INFO() 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_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_ARG_TYPE_INFO(0, path, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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_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_ARG_TYPE_INFO(0, path, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #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_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, target, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, link, IS_STRING, 0) ZEND_ARG_TYPE_INFO(0, link, IS_STRING, 0)
ZEND_END_ARG_INFO() ZEND_END_ARG_INFO()
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
#define arginfo_link arginfo_symlink #define arginfo_link arginfo_symlink
#endif #endif
@ -2001,7 +2001,7 @@ ZEND_END_ARG_INFO()
#define arginfo_stream_set_chunk_size arginfo_stream_set_write_buffer #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_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stream_set_timeout, 0, 2, _IS_BOOL, 0)
ZEND_ARG_INFO(0, stream) ZEND_ARG_INFO(0, stream)
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) 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() ZEND_END_ARG_INFO()
#endif #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 #define arginfo_socket_set_timeout arginfo_stream_set_timeout
#endif #endif
@ -2380,16 +2380,16 @@ ZEND_FUNCTION(gethostname);
ZEND_FUNCTION(gethostbyaddr); ZEND_FUNCTION(gethostbyaddr);
ZEND_FUNCTION(gethostbyname); ZEND_FUNCTION(gethostbyname);
ZEND_FUNCTION(gethostbynamel); 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); ZEND_FUNCTION(dns_check_record);
#endif #endif
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) #if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC))
ZEND_FUNCTION(dns_get_record); ZEND_FUNCTION(dns_get_record);
#endif #endif
#if defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC) #if (defined(PHP_WIN32) || defined(HAVE_DNS_SEARCH_FUNC))
ZEND_FUNCTION(dns_get_mx); ZEND_FUNCTION(dns_get_mx);
#endif #endif
#if defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__) #if (defined(PHP_WIN32) || HAVE_GETIFADDRS || defined(__PASE__))
ZEND_FUNCTION(net_get_interfaces); ZEND_FUNCTION(net_get_interfaces);
#endif #endif
#if defined(HAVE_FTOK) #if defined(HAVE_FTOK)
@ -2509,7 +2509,7 @@ ZEND_FUNCTION(opendir);
ZEND_FUNCTION(dir); ZEND_FUNCTION(dir);
ZEND_FUNCTION(closedir); ZEND_FUNCTION(closedir);
ZEND_FUNCTION(chdir); 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); ZEND_FUNCTION(chroot);
#endif #endif
ZEND_FUNCTION(getcwd); ZEND_FUNCTION(getcwd);
@ -2626,16 +2626,16 @@ ZEND_FUNCTION(php_ini_loaded_file);
ZEND_FUNCTION(iptcembed); ZEND_FUNCTION(iptcembed);
ZEND_FUNCTION(iptcparse); ZEND_FUNCTION(iptcparse);
ZEND_FUNCTION(levenshtein); ZEND_FUNCTION(levenshtein);
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FUNCTION(readlink); ZEND_FUNCTION(readlink);
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FUNCTION(linkinfo); ZEND_FUNCTION(linkinfo);
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FUNCTION(symlink); ZEND_FUNCTION(symlink);
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FUNCTION(link); ZEND_FUNCTION(link);
#endif #endif
ZEND_FUNCTION(mail); ZEND_FUNCTION(mail);
@ -2753,7 +2753,7 @@ ZEND_FUNCTION(stream_isatty);
ZEND_FUNCTION(sapi_windows_vt100_support); ZEND_FUNCTION(sapi_windows_vt100_support);
#endif #endif
ZEND_FUNCTION(stream_set_chunk_size); 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); ZEND_FUNCTION(stream_set_timeout);
#endif #endif
ZEND_FUNCTION(gettype); ZEND_FUNCTION(gettype);
@ -3006,22 +3006,22 @@ static const zend_function_entry ext_functions[] = {
ZEND_FE(gethostbyaddr, arginfo_gethostbyaddr) ZEND_FE(gethostbyaddr, arginfo_gethostbyaddr)
ZEND_FE(gethostbyname, arginfo_gethostbyname) ZEND_FE(gethostbyname, arginfo_gethostbyname)
ZEND_FE(gethostbynamel, arginfo_gethostbynamel) 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) ZEND_FE(dns_check_record, arginfo_dns_check_record)
#endif #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) ZEND_FALIAS(checkdnsrr, dns_check_record, arginfo_checkdnsrr)
#endif #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) ZEND_FE(dns_get_record, arginfo_dns_get_record)
#endif #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) ZEND_FE(dns_get_mx, arginfo_dns_get_mx)
#endif #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) ZEND_FALIAS(getmxrr, dns_get_mx, arginfo_getmxrr)
#endif #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) ZEND_FE(net_get_interfaces, arginfo_net_get_interfaces)
#endif #endif
#if defined(HAVE_FTOK) #if defined(HAVE_FTOK)
@ -3144,7 +3144,7 @@ static const zend_function_entry ext_functions[] = {
ZEND_FE(dir, arginfo_dir) ZEND_FE(dir, arginfo_dir)
ZEND_FE(closedir, arginfo_closedir) ZEND_FE(closedir, arginfo_closedir)
ZEND_FE(chdir, arginfo_chdir) 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) ZEND_FE(chroot, arginfo_chroot)
#endif #endif
ZEND_FE(getcwd, arginfo_getcwd) ZEND_FE(getcwd, arginfo_getcwd)
@ -3264,16 +3264,16 @@ static const zend_function_entry ext_functions[] = {
ZEND_FE(iptcembed, arginfo_iptcembed) ZEND_FE(iptcembed, arginfo_iptcembed)
ZEND_FE(iptcparse, arginfo_iptcparse) ZEND_FE(iptcparse, arginfo_iptcparse)
ZEND_FE(levenshtein, arginfo_levenshtein) ZEND_FE(levenshtein, arginfo_levenshtein)
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FE(readlink, arginfo_readlink) ZEND_FE(readlink, arginfo_readlink)
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FE(linkinfo, arginfo_linkinfo) ZEND_FE(linkinfo, arginfo_linkinfo)
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FE(symlink, arginfo_symlink) ZEND_FE(symlink, arginfo_symlink)
#endif #endif
#if defined(HAVE_SYMLINK) || defined(PHP_WIN32) #if (defined(HAVE_SYMLINK) || defined(PHP_WIN32))
ZEND_FE(link, arginfo_link) ZEND_FE(link, arginfo_link)
#endif #endif
ZEND_FE(mail, arginfo_mail) 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) ZEND_FE(sapi_windows_vt100_support, arginfo_sapi_windows_vt100_support)
#endif #endif
ZEND_FE(stream_set_chunk_size, arginfo_stream_set_chunk_size) 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) ZEND_FE(stream_set_timeout, arginfo_stream_set_timeout)
#endif #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) ZEND_FALIAS(socket_set_timeout, stream_set_timeout, arginfo_socket_set_timeout)
#endif #endif
ZEND_FE(gettype, arginfo_gettype) ZEND_FE(gettype, arginfo_gettype)

View file

@ -325,7 +325,7 @@ const STREAM_PF_UNIX = UNKNOWN;
const STREAM_IPPROTO_IP = UNKNOWN; const STREAM_IPPROTO_IP = UNKNOWN;
#endif #endif
#if defined(IPPROTO_TCP) || defined(PHP_WIN32) #if (defined(IPPROTO_TCP) || defined(PHP_WIN32))
/** /**
* @var int * @var int
* @cvalue IPPROTO_TCP * @cvalue IPPROTO_TCP
@ -333,7 +333,7 @@ const STREAM_IPPROTO_IP = UNKNOWN;
const STREAM_IPPROTO_TCP = UNKNOWN; const STREAM_IPPROTO_TCP = UNKNOWN;
#endif #endif
#if defined(IPPROTO_UDP) || defined(PHP_WIN32) #if (defined(IPPROTO_UDP) || defined(PHP_WIN32))
/** /**
* @var int * @var int
* @cvalue IPPROTO_UDP * @cvalue IPPROTO_UDP
@ -341,7 +341,7 @@ const STREAM_IPPROTO_TCP = UNKNOWN;
const STREAM_IPPROTO_UDP = UNKNOWN; const STREAM_IPPROTO_UDP = UNKNOWN;
#endif #endif
#if defined(IPPROTO_ICMP) || defined(PHP_WIN32) #if (defined(IPPROTO_ICMP) || defined(PHP_WIN32))
/** /**
* @var int * @var int
* @cvalue IPPROTO_ICMP * @cvalue IPPROTO_ICMP
@ -349,7 +349,7 @@ const STREAM_IPPROTO_UDP = UNKNOWN;
const STREAM_IPPROTO_ICMP = UNKNOWN; const STREAM_IPPROTO_ICMP = UNKNOWN;
#endif #endif
#if defined(IPPROTO_RAW) || defined(PHP_WIN32) #if (defined(IPPROTO_RAW) || defined(PHP_WIN32))
/** /**
* @var int * @var int
* @cvalue IPPROTO_RAW * @cvalue IPPROTO_RAW

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead. /* 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) #if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) && defined(IPPROTO_IP)
REGISTER_LONG_CONSTANT("STREAM_IPPROTO_IP", IPPROTO_IP, CONST_PERSISTENT); REGISTER_LONG_CONSTANT("STREAM_IPPROTO_IP", IPPROTO_IP, CONST_PERSISTENT);
#endif #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); REGISTER_LONG_CONSTANT("STREAM_IPPROTO_TCP", IPPROTO_TCP, CONST_PERSISTENT);
#endif #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); REGISTER_LONG_CONSTANT("STREAM_IPPROTO_UDP", IPPROTO_UDP, CONST_PERSISTENT);
#endif #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); REGISTER_LONG_CONSTANT("STREAM_IPPROTO_ICMP", IPPROTO_ICMP, CONST_PERSISTENT);
#endif #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); REGISTER_LONG_CONSTANT("STREAM_IPPROTO_RAW", IPPROTO_RAW, CONST_PERSISTENT);
#endif #endif
#if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX) #if defined(PF_INET) && defined(HAVE_IPV6) && defined(PF_UNIX)