]> granicus.if.org Git - php/commitdiff
Fix typo (UNKOWN -> UNKNOWN)
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 Apr 2020 12:06:11 +0000 (14:06 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 9 Apr 2020 12:06:11 +0000 (14:06 +0200)
ext/com_dotnet/com_extension.stub.php
ext/com_dotnet/com_extension_arginfo.h
ext/dba/dba.stub.php
ext/dba/dba_arginfo.h
ext/snmp/snmp.stub.php
ext/snmp/snmp_arginfo.h

index fe35e17c42c270ff9b9590e3aaa91443e107347b..d97a51968ecdc63cc1e017c3c932440bbfdcd2ce 100644 (file)
@@ -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
index 9d8592d5dde8b77c8f5c7ef7fc18a0366399fff1..47e41ef2683c50f1c6377eab11e287be15033aa7 100644 (file)
@@ -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()
index 9127bb96d0c08d1bde2da80bd5b9e7fcc0c9ab7a..28076db7600a982643ce3a033e177636cbb08b19 100644 (file)
@@ -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 {}
 
index d2907d7f31bfb11209122172118c2e857574950d..ae4b84cd946d03833ff9a73ce34a2f0ee601350e 100644 (file)
@@ -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)
index 54740debf8fc0926c27dac1ad94394fa23aec585..11e8516a944d32f96ce2f71ecbfa717d9c3e76ef 100644 (file)
@@ -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 {}
index 8f1f95398d05c5b9573a44b3679804afdd15d2c6..487304f1136c36516affc3c0ca98f2ecff1b8cab 100644 (file)
@@ -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