summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-04-09 14:06:11 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-04-09 14:06:11 +0200
commit175e5ed4bf85b68a5a60cb481322c18f2f9f8f46 (patch)
tree5f45a6986dff4f5801f7d018f350ba7606326c5a
parent12ec7a273048f470a08a5aeb84dfde6adbde9d35 (diff)
downloadphp-git-175e5ed4bf85b68a5a60cb481322c18f2f9f8f46.tar.gz
Fix typo (UNKOWN -> UNKNOWN)
-rw-r--r--ext/com_dotnet/com_extension.stub.php2
-rw-r--r--ext/com_dotnet/com_extension_arginfo.h2
-rw-r--r--ext/dba/dba.stub.php2
-rw-r--r--ext/dba/dba_arginfo.h2
-rw-r--r--ext/snmp/snmp.stub.php4
-rw-r--r--ext/snmp/snmp_arginfo.h21
6 files changed, 8 insertions, 25 deletions
diff --git a/ext/com_dotnet/com_extension.stub.php b/ext/com_dotnet/com_extension.stub.php
index fe35e17c42..d97a51968e 100644
--- a/ext/com_dotnet/com_extension.stub.php
+++ b/ext/com_dotnet/com_extension.stub.php
@@ -75,7 +75,7 @@ class variant
class com
{
/** @param string|array|null $server_name */
- public function __construct(string $module_name, $server_name = UNKOWN, int $codepage = CP_ACP, string $typelib = "") {}
+ public function __construct(string $module_name, $server_name = UNKNOWN, int $codepage = CP_ACP, string $typelib = "") {}
}
#if HAVE_MSCOREE_H
diff --git a/ext/com_dotnet/com_extension_arginfo.h b/ext/com_dotnet/com_extension_arginfo.h
index 9d8592d5dd..47e41ef268 100644
--- a/ext/com_dotnet/com_extension_arginfo.h
+++ b/ext/com_dotnet/com_extension_arginfo.h
@@ -117,7 +117,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_com___construct, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, module_name, IS_STRING, 0)
- ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, server_name, "UNKOWN")
+ ZEND_ARG_INFO(0, server_name)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, codepage, IS_LONG, 0, "CP_ACP")
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, typelib, IS_STRING, 0, "\"\"")
ZEND_END_ARG_INFO()
diff --git a/ext/dba/dba.stub.php b/ext/dba/dba.stub.php
index 9127bb96d0..28076db760 100644
--- a/ext/dba/dba.stub.php
+++ b/ext/dba/dba.stub.php
@@ -22,7 +22,7 @@ function dba_exists($key, $handle): bool {}
* @param int|resource $skip actually this parameter is optional, not $handle
* @param resource $handle
*/
-function dba_fetch($key, $skip, $handle = UNKOWN): string|false {}
+function dba_fetch($key, $skip, $handle = UNKNOWN): string|false {}
function dba_key_split(string $key): array|false {}
diff --git a/ext/dba/dba_arginfo.h b/ext/dba/dba_arginfo.h
index d2907d7f31..ae4b84cd94 100644
--- a/ext/dba/dba_arginfo.h
+++ b/ext/dba/dba_arginfo.h
@@ -21,7 +21,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_fetch, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
ZEND_ARG_INFO(0, key)
ZEND_ARG_INFO(0, skip)
- ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, handle, "UNKOWN")
+ ZEND_ARG_INFO(0, handle)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_dba_key_split, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
diff --git a/ext/snmp/snmp.stub.php b/ext/snmp/snmp.stub.php
index 54740debf8..11e8516a94 100644
--- a/ext/snmp/snmp.stub.php
+++ b/ext/snmp/snmp.stub.php
@@ -40,7 +40,7 @@ function snmp_set_oid_numeric_print(int $oid_format): bool {}
function snmp2_get(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/** @param array|string $object_id */
-function snmp2_getnext(string $host, string $community, $object_id, int $timeout = UNKOWN, int $retries = UNKNOWN): array|bool {}
+function snmp2_getnext(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/** @param array|string $object_id */
function snmp2_walk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
@@ -59,7 +59,7 @@ function snmp2_set(string $host, string $community, $object_id, $type, $value, i
function snmp3_get(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/** @param array|string $object_id */
-function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKOWN): array|bool {}
+function snmp3_getnext(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
/** @param array|string $object_id */
function snmp3_walk(string $host, string $sec_name, string $sec_level, string $auth_protocol, string $auth_passphrase, string $priv_protocol, string $priv_passphrase, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
diff --git a/ext/snmp/snmp_arginfo.h b/ext/snmp/snmp_arginfo.h
index 8f1f95398d..487304f113 100644
--- a/ext/snmp/snmp_arginfo.h
+++ b/ext/snmp/snmp_arginfo.h
@@ -45,13 +45,7 @@ ZEND_END_ARG_INFO()
#define arginfo_snmp2_get arginfo_snmpget
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp2_getnext, 0, 3, MAY_BE_ARRAY|MAY_BE_BOOL)
- ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, community, IS_STRING, 0)
- ZEND_ARG_INFO(0, object_id)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, timeout, IS_LONG, 0, "UNKOWN")
- ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
-ZEND_END_ARG_INFO()
+#define arginfo_snmp2_getnext arginfo_snmpget
#define arginfo_snmp2_walk arginfo_snmpget
@@ -72,18 +66,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_get, 0, 8, MAY_BE_ARRAY|MA
ZEND_ARG_TYPE_INFO(0, retries, IS_LONG, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_snmp3_getnext, 0, 8, MAY_BE_ARRAY|MAY_BE_BOOL)
- ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, sec_name, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, sec_level, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, auth_protocol, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, auth_passphrase, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, priv_protocol, IS_STRING, 0)
- ZEND_ARG_TYPE_INFO(0, priv_passphrase, IS_STRING, 0)
- ZEND_ARG_INFO(0, object_id)
- ZEND_ARG_TYPE_INFO(0, timeout, IS_LONG, 0)
- ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, retries, IS_LONG, 0, "UNKOWN")
-ZEND_END_ARG_INFO()
+#define arginfo_snmp3_getnext arginfo_snmp3_get
#define arginfo_snmp3_walk arginfo_snmp3_get