]> granicus.if.org Git - php/commitdiff
Add a few missing types to stubs
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 1 Aug 2020 21:54:28 +0000 (23:54 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 1 Aug 2020 21:55:08 +0000 (23:55 +0200)
ext/exif/exif.stub.php
ext/exif/exif_arginfo.h
ext/odbc/odbc.stub.php
ext/odbc/odbc_arginfo.h
ext/openssl/openssl.stub.php
ext/openssl/openssl_arginfo.h
ext/pcntl/pcntl.stub.php
ext/pcntl/pcntl_arginfo.h
ext/sodium/libsodium.stub.php
ext/sodium/libsodium_arginfo.h

index b5db8bf02bd5471d9b3b20e78f60b48ce8194fa8..86e4cc5258e3ebaba774faa52671dda3e23e5d49 100644 (file)
@@ -4,8 +4,10 @@
 
 function exif_tagname(int $index): string|false {}
 
+/** @param resource|string $filename */
 function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false): array|false {}
 
+/** @param resource|string $filename */
 function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null): string|false {}
 
 function exif_imagetype(string $filename): int|false {}
index dfe2d97e9b11209738898b5bfe50d47377a95f52..5edef59fc6db166b525cfafff98b59e49c302b58 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 603888c5295306e86fabce6d6f5367376c666cfe */
+ * Stub hash: 62f6ca1a43c69d917711eae9118caf5a658722d9 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_exif_tagname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
        ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0)
index bcd0cdbbc243901612578557d7c2d8a0802429f3..89371024eb9cf2bcc4fc635799c78aad84ecee85 100644 (file)
@@ -11,7 +11,7 @@ function odbc_binmode($result_id, int $mode): bool {}
 function odbc_longreadlen($result_id, int $length): bool {}
 
 /**
- * @param resource $result_id
+ * @param resource $connection_id
  * @return resource|false
  */
 function odbc_prepare($connection_id, string $query) {}
@@ -48,7 +48,10 @@ function odbc_fetch_object($result, int $rownumber = -1): stdClass|false {}
 function odbc_fetch_array($result, int $rownumber = -1): array|false {}
 #endif
 
-/** @param resource $result_id */
+/**
+ * @param resource $result_id
+ * @param array $result_array
+ */
 function odbc_fetch_into($result_id, &$result_array, int $rownumber = 0): int|false {}
 
 /** @param resource $result_id */
index 69cdfa9148d3c578534d331b23c0e67e46ac48f9..2f5ffbe547af0f6f796f439443f0c11483af53c8 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 4abab509eb27b93c15f03313e80c90400f7948d0 */
+ * Stub hash: 14702a5bd87902871d456de2289f4ae236e5bfa5 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_odbc_close_all, 0, 0, IS_VOID, 0)
 ZEND_END_ARG_INFO()
index 6e088204e08363240065b63e30866ff30936dbde..3d2b0d87f8507a20d2c3f1470beafdb3ddc9132b 100644 (file)
@@ -16,6 +16,7 @@ final class OpenSSLAsymmetricKey
 
 function openssl_x509_export_to_file(OpenSSLCertificate|string $x509, string $outfilename, bool $notext = true): bool {}
 
+/** @param string $out */
 function openssl_x509_export(OpenSSLCertificate|string $x509, &$out, bool $notext = true): bool {}
 
 function openssl_x509_fingerprint(OpenSSLCertificate|string $x509, string $method = "sha1", bool $raw_output = false): string|false {}
@@ -38,7 +39,10 @@ function openssl_x509_free(OpenSSLCertificate $x509): void {}
 /** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $priv_key */
 function openssl_pkcs12_export_to_file(OpenSSLCertificate|string $x509cert, string $filename, $priv_key, string $pass, array $args = []): bool {}
 
-/** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $priv_key */
+/**
+ * @param string $out
+ * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $priv_key
+ */
 function openssl_pkcs12_export(OpenSSLCertificate|string $x509, &$out, $priv_key, string $pass, array $args = []): bool {}
 
 /** @param array $certs */
@@ -115,9 +119,10 @@ function openssl_pkcs7_sign(string $infile, string $outfile, OpenSSLCertificate|
 /** @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $recipkey */
 function openssl_pkcs7_decrypt(string $infilename, string $outfilename, OpenSSLCertificate|string $recipcert, $recipkey = null): bool {}
 
+/** @param array $certs */
 function openssl_pkcs7_read(string $infilename, &$certs): bool {}
 
-function openssl_cms_verify(string $filename, int $flags = 0, ?string $signerscerts = null, ?array $cainfo = null, ?string $extracerts = null, ?string $content = null, ?string $pk7 = null, ?string $sigfile = null, $encoding = OPENSSL_ENCODING_SMIME): bool {}
+function openssl_cms_verify(string $filename, int $flags = 0, ?string $signerscerts = null, ?array $cainfo = null, ?string $extracerts = null, ?string $content = null, ?string $pk7 = null, ?string $sigfile = null, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
 
 /** @param OpenSSLCertificate|array|string $recipcerts */
 function openssl_cms_encrypt(string $infile, string $outfile, $recipcerts, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME,  int $cipher = OPENSSL_CIPHER_RC2_40): bool {}
index dcb13d8f43d6ca0c9e9fb057a5ab7e59b699a313..07f0d2539176c85ed52df2977b84060d29a8efe8 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 5189cc18305417d2566fe594f69806f72899c355 */
+ * Stub hash: ed45da0e8786db9b20fd33d574b20f3d41304e0a */
 
 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, x509, OpenSSLCertificate, MAY_BE_STRING, NULL)
@@ -208,7 +208,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_verify, 0, 1, _IS_BO
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, content, IS_STRING, 1, "null")
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pk7, IS_STRING, 1, "null")
        ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, sigfile, IS_STRING, 1, "null")
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, encoding, "OPENSSL_ENCODING_SMIME")
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, encoding, IS_LONG, 0, "OPENSSL_ENCODING_SMIME")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_openssl_cms_encrypt, 0, 4, _IS_BOOL, 0)
index 8dbc1c48e2f3d77476abac2829995124afd0cef2..3c1fd97968a8f378c406e7401dacb883ae05ce92 100644 (file)
@@ -4,13 +4,13 @@
 
 function pcntl_fork(): int {}
 
+/** @param int $status */
 function pcntl_waitpid(int $pid, &$status, int $options = 0, &$rusage = []): int {}
 
+/** @param int $status */
 function pcntl_wait(&$status, int $options = 0, &$rusage = []): int {}
 
-/**
- * @param callable|int $handler
- */
+/** @param callable|int $handler */
 function pcntl_signal(int $signo, $handler, bool $restart_syscalls = true): bool {}
 
 /** @return mixed */
@@ -19,13 +19,16 @@ function pcntl_signal_get_handler(int $signo) {}
 function pcntl_signal_dispatch(): bool {}
 
 #ifdef HAVE_SIGPROCMASK
+/** @param array $oldset */
 function pcntl_sigprocmask(int $how, array $set, &$oldset = null): bool {}
 #endif
 
 #ifdef HAVE_STRUCT_SIGINFO_T
 #if defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT)
+/** @param array $info */
 function pcntl_sigwaitinfo(array $set, &$info = []): int|false {}
 
+/** @param array $info */
 function pcntl_sigtimedwait(array $set, &$info = [], int $seconds = 0, int $nanoseconds = 0): int|false {}
 #endif
 #endif
index 31dc8613c034747abdde3897a0ac4683421eec77..6e67d4613d59c01f5bb5b4f798f44fd26cfd44b4 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: c87eae3de097554566cf3e285c1a2542947d6ff9 */
+ * Stub hash: 243017c5440bff0b3ee3296705d8455d0fac5b7e */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0)
 ZEND_END_ARG_INFO()
index 73051b70cf4b7005116e35e5f8c77787eac441f0..6429c3beba97fd41f9410319ebbd531057bdec1a 100644 (file)
@@ -78,7 +78,7 @@ function sodium_crypto_generichash_init(string $key = "", int $length = SODIUM_C
 
 function sodium_crypto_generichash_update(string &$state, string $string): bool {}
 
-function sodium_crypto_generichash_final(string &$state, $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
+function sodium_crypto_generichash_final(string &$state, int $length = SODIUM_CRYPTO_GENERICHASH_BYTES): string {}
 
 function sodium_crypto_kdf_derive_from_key(int $subkey_len, int $subkey_id, string $context, string $key): string {}
 
@@ -176,7 +176,7 @@ function sodium_unpad(string $string, int $block_size): string {}
 
 function sodium_bin2hex(string $string): string {}
 
-function sodium_hex2bin(string $string, $ignore  = ""): string {}
+function sodium_hex2bin(string $string, string $ignore = ""): string {}
 
 #ifdef sodium_base64_VARIANT_ORIGINAL
 function sodium_bin2base64(string $string, int $id): string {}
index 518490618eb784aebd4ef4e5d5bea003e4e4c0bc..4f06398bde2dd5ea00e3af208a5356cba36bbb9f 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 1cbca4f3d58dea842b4ea419df57531682ab984d */
+ * Stub hash: 5d064655caf10f5e0dd126009755bf3552c63f59 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_aead_aes256gcm_is_available, 0, 0, _IS_BOOL, 0)
 ZEND_END_ARG_INFO()
@@ -162,7 +162,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_generichash_final, 0, 1, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(1, state, IS_STRING, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, length, "SODIUM_CRYPTO_GENERICHASH_BYTES")
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 0, "SODIUM_CRYPTO_GENERICHASH_BYTES")
 ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_crypto_kdf_derive_from_key, 0, 4, IS_STRING, 0)
@@ -363,7 +363,7 @@ ZEND_END_ARG_INFO()
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sodium_hex2bin, 0, 1, IS_STRING, 0)
        ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
-       ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, ignore, "\"\"")
+       ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, ignore, IS_STRING, 0, "\"\"")
 ZEND_END_ARG_INFO()
 
 #if defined(sodium_base64_VARIANT_ORIGINAL)