]> granicus.if.org Git - php/commitdiff
Annotate function aliases in stubs
authorMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 4 Apr 2020 11:03:16 +0000 (13:03 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Sat, 4 Apr 2020 11:03:16 +0000 (13:03 +0200)
16 files changed:
build/gen_stub.php [changed mode: 0644->0755]
ext/bz2/bz2.stub.php
ext/ftp/ftp.stub.php
ext/gmp/gmp.stub.php
ext/imap/php_imap.stub.php
ext/ldap/ldap.stub.php
ext/mysqli/mysqli.stub.php
ext/odbc/odbc.stub.php
ext/openssl/openssl.stub.php
ext/pcntl/pcntl.stub.php
ext/posix/posix.stub.php
ext/session/session.stub.php
ext/snmp/snmp.stub.php
ext/sockets/sockets.stub.php
ext/sodium/libsodium.stub.php
ext/zlib/zlib.stub.php

old mode 100644 (file)
new mode 100755 (executable)
index 4dcaf07a11ae419d3c123f7c27af8f4c2cc21e18..6c871e39907468c99e20a9cb7a139237e1c9f376 100644 (file)
@@ -9,13 +9,22 @@
 /** @param resource $bz */
 function bzread($bz, int $length = 1024): string|false {}
 
-/** @param resource $bz */
+/**
+ * @param resource $bz
+ * @alias fwrite
+ */
 function bzwrite($bz, string $str, int $length = UNKNOWN): int|false {}
 
-/** @param resource $bz */
+/**
+ * @param resource $bz
+ * @alias fflush
+ */
 function bzflush($bz): bool {}
 
-/** @param resource $bz */
+/**
+ * @param resource $bz
+ * @alias fclose
+ */
 function bzclose($bz): bool {}
 
 /** @param resource $bz */
index bae3a5128c96441b176258933fdf51dc6224dd72..d3033e3b31049050da548df2e9b8e6cc79d9af26 100644 (file)
@@ -113,7 +113,10 @@ function ftp_site($ftp, string $cmd): bool {}
 /** @param resource $ftp */
 function ftp_close($ftp): bool {}
 
-/** @param resource $ftp */
+/**
+ * @param resource $ftp
+ * @alias ftp_close
+ */
 function ftp_quit($ftp): bool {}
 
 /** @param resource $ftp */
index 7f576ca0c1043fc455ee2ddd9138410eaf3aba16..ab86ce944b14ecf189d5937a67df690e628cb51c 100644 (file)
@@ -53,6 +53,7 @@ function gmp_div_r($a, $b, int $round = GMP_ROUND_ZERO): GMP|false {}
 /**
  * @param GMP|int|bool|string $a
  * @param GMP|int|bool|string $b
+ * @alias gmp_div_q
  */
 function gmp_div($a, $b, int $round = GMP_ROUND_ZERO): GMP|false {}
 
index c80799225cd2ece3fd6c855c1db93f1e295a7ed5..1366a0fc06a73887e6067fb3f76d38f497104087 100644 (file)
@@ -27,6 +27,7 @@ function imap_headers($stream_id): array|false {}
 /** @param resource $stream_id */
 function imap_headerinfo($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {}
 
+/** @alias imap_headerinfo */
 function imap_header($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {}
 
 function imap_rfc822_parse_headers(string $headers, string $default_host = 'UNKNOWN'): \stdClass {}
@@ -38,7 +39,10 @@ function imap_rfc822_parse_adrlist(string $address_string, string $default_host)
 /** @param resource $stream_id */
 function imap_body($stream_id, int $msg_no, int $options = 0): string|false {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_body
+ */
 function imap_fetchtext($stream_id, int $msg_no, int $options = 0): string|false {}
 
 /**
@@ -91,10 +95,16 @@ function imap_check($stream_id): stdClass|false {}
 /** @param resource $stream_id */
 function imap_listscan($stream_id, string $ref, string $pattern, string $content): array|false {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_listscan
+ */
 function imap_scan($stream_id, string $ref, string $pattern, string $content): array|false {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_listscan
+ */
 function imap_scanmailbox($stream_id, string $ref, string $pattern, string $content): array|false {}
 
 /** @param resource $stream_id */
@@ -108,13 +118,19 @@ function imap_mail_compose(array $envelope, array $body): string|false {}
 /** @param resource $stream_id */
 function imap_createmailbox($stream_id, string $mailbox): bool {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_createmailbox
+ */
 function imap_create($stream_id, string $mailbox): bool {}
 
 /** @param resource $stream_id */
 function imap_renamemailbox($stream_id, string $old_name, string $new_name): bool {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_renamemailbox
+ */
 function imap_rename($stream_id, string $old_name, string $new_name): bool {}
 
 /** @param resource $stream_id */
@@ -170,13 +186,19 @@ function imap_msgno($stream_id, int $unique_msg_id): int|false {}
 /** @param resource $stream_id */
 function imap_list($stream_id, string $ref, string $pattern): array|false {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_list
+ */
 function imap_listmailbox($stream_id, string $ref, string $pattern): array|false {}
 
 /** @param resource $stream_id */
 function imap_lsub($stream_id, string $ref, string $pattern): array|false {}
 
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_lsub
+ */
 function imap_listsubscribed($stream_id, string $ref, string $pattern): array|false {}
 
 /** @param resource $stream_id */
index 7db01d57b769dce2ce45b3e84458b428e06f464b..8224bc15837f57b863415bdf170af388a48ead29 100644 (file)
@@ -13,7 +13,10 @@ function ldap_connect(string $hostname = UNKNOWN, int $port = 389) {}
 /** @param resource $link_identifier */
 function ldap_unbind($link_identifier): bool {}
 
-/** @param resource $link_identifier */
+/**
+ * @param resource $link_identifier
+ * @alias ldap_unbind
+ */
 function ldap_close($link_identifier): bool {}
 
 /** @param resource $link_identifier */
@@ -111,6 +114,7 @@ function ldap_get_values_len($link_identifier, $result_entry_identifier, string
 /**
  * @param resource $link_identifier
  * @param resource $result_entry_identifier
+ * @alias ldap_get_values_len
  */
 function ldap_get_values($link_identifier, $result_entry_identifier, string $attribute): array|false {}
 
@@ -157,7 +161,10 @@ function ldap_mod_add_ext($link_identifier, string $dn, array $entry, array $ser
 /** @param resource $link_identifier */
 function ldap_mod_replace($link_identifier, string $dn, array $entry, array $servercontrols = []): bool {}
 
-/** @param resource $link_identifier */
+/**
+ * @param resource $link_identifier
+ * @alias ldap_mod_replace
+ */
 function ldap_modify($link_identifier, string $dn, array $entry, array $servercontrols = []): bool {}
 
 /**
index 434346e2de407ffb47f5d34c9993f5870f0d7a35..58132a198d8e038f0d437555fb539f79c5fe104b 100644 (file)
@@ -321,6 +321,7 @@ function mysqli_error_list(mysqli $mysql_link): array {}
 
 function mysqli_stmt_execute(mysqli_stmt $mysql_stmt): bool {}
 
+/** @alias mysqli_stmt_execute */
 function mysqli_execute(mysqli_stmt $mysql_stmt): bool {}
 
 function mysqli_fetch_field(mysqli_result $mysql_result): object|false {}
@@ -513,7 +514,11 @@ function mysqli_warning_count(mysqli $mysql_link): int {}
 
 function mysqli_refresh(mysqli $mysqli_link, int $options): bool {}
 
+/** @alias mysqli_real_escape_string */
 function mysqli_escape_string(mysqli $mysqli_link, string $string_to_escape): string {}
 
-/** @param mixed $value */
+/**
+ * @param mixed $value
+ * @alias mysqli_options
+ */
 function mysqli_set_opt(mysqli $mysqli_link, int $option, $value): bool {}
index 9eafe46ae503641af76d6750c1d2c5cc9d742107..153f1a81615c2633cc9e5e809ff4c469b37c2d16 100644 (file)
@@ -34,6 +34,7 @@ function odbc_exec($connection_id, string $query, int $flags = UNKNOWN) {}
 /**
  * @param resource $connection_id
  * @return resource|false
+ * @alias odbc_exec
  */
 function odbc_do($connection_id, string $query, int $flags = UNKNOWN) {}
 
@@ -92,7 +93,10 @@ function odbc_field_type($result_id, int $field_number): string|false {}
 /** @param resource $result_id */
 function odbc_field_len($result_id, int $field_number): int|false {}
 
-/** @param resource $result_id */
+/**
+ * @param resource $result_id
+ * @alias odbc_field_len
+ */
 function odbc_field_precision($result_id, int $field_number): int|false {}
 
 /** @param resource $result_id */
index 413414117f2503d99994c625a90c20aa3a348c24..7588635d07d0fa2cef359397c761bc1e107eaaf1 100644 (file)
@@ -77,13 +77,17 @@ function openssl_pkey_get_public($cert) {}
 /**
  * @param resource|string|array $cert
  * @return resource|false
+ * @alias openssl_pkey_get_public
  */
 function openssl_get_publickey($cert) {}
 
 /** @param resource $key */
 function openssl_pkey_free($key): void {}
 
-/** @param resource $key */
+/**
+ * @param resource $key
+ * @alias openssl_pkey_free
+ */
 function openssl_free_key($key): void {}
 
 /**
@@ -95,6 +99,7 @@ function openssl_pkey_get_private($key, string $passphrase = UNKNOWN) {}
 /**
  * @param resource|string|array $key
  * @return resource|false
+ * @alias openssl_pkey_get_private
  */
 function openssl_get_privatekey($key, string $passphrase = UNKNOWN) {}
 
index c8da88c481f1c836cf8eb194f8f9d9531da19e4c..82bac573169c33fea76b6815439d2ffa5f25a80f 100644 (file)
@@ -50,6 +50,7 @@ function pcntl_alarm(int $seconds): int {}
 
 function pcntl_get_last_error(): int {}
 
+/** @alias pcntl_get_last_error */
 function pcntl_errno(): int {}
 
 #ifdef HAVE_GETPRIORITY
index 008d35f689db066aabadbb988a8c49cd56136d76..dcef25cfecfc6b1cd1544b218ed1edec4ddcd353 100644 (file)
@@ -93,6 +93,7 @@ function posix_setrlimit(int $resource, int $softlimit, int $hardlimit): bool {}
 
 function posix_get_last_error(): int {}
 
+/** @alias posix_get_last_error */
 function posix_errno(): int {}
 
 function posix_strerror(int $errno): string {}
index e343fc890168593be10dd7088d0737be24c91605..09c35aae28d4f848a6b7108cc05f2d37308a39ec 100644 (file)
@@ -34,6 +34,7 @@ function session_status(): int {}
 
 function session_register_shutdown(): void {}
 
+/** @alias session_write_close */
 function session_commit(): bool {}
 
 function session_set_save_handler($open, $close = null, $read = null, $write = null, $destroy = null, $gc = null, $create_sid = null, $validate_sid = null, $update_timestamp = null): bool {}
index ce085637be1be112588c8f1ebd2e8d2d11a7b593..54740debf8fc0926c27dac1ad94394fa23aec585 100644 (file)
@@ -12,7 +12,10 @@ function snmpwalk(string $host, string $community, $object_id, int $timeout = UN
 /** @param array|string $object_id */
 function snmprealwalk(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
-/** @param array|string $object_id */
+/**
+ * @param array|string $object_id
+ * @alias snmprealwalk
+ */
 function snmpwalkoid(string $host, string $community, $object_id, int $timeout = UNKNOWN, int $retries = UNKNOWN): array|bool {}
 
 /**
@@ -30,6 +33,7 @@ function snmp_set_enum_print(int $enum_print): bool {}
 
 function snmp_set_oid_output_format(int $oid_format): bool {}
 
+/** @alias snmp_set_oid_output_format */
 function snmp_set_oid_numeric_print(int $oid_format): bool {}
 
 /** @param array|string $object_id */
index bdff816f4622939800071c0ca196e00d1c22d298..c7d582c8d135ec52b5b8ed062488e26d00357934 100644 (file)
@@ -61,13 +61,19 @@ function socket_sendto($socket, string $buf, int $len, int $flags, string $addr,
 /** @param resource $socket */
 function socket_get_option($socket, int $level, int $optname): array|int|false {}
 
-/** @param resource $socket */
+/**
+ * @param resource $socket
+ * @alias socket_get_option
+ */
 function socket_getopt($socket, int $level, int $optname): array|int|false {}
 
 /** @param resource $socket */
 function socket_set_option($socket, int $level, int $optname, $optval): bool {}
 
-/** @param resource $socket */
+/**
+ * @param resource $socket
+ * @alias socket_set_option
+ */
 function socket_setopt($socket, int $level, int $optname, $optval): bool {}
 
 #ifdef HAVE_SOCKETPAIR
index 228248d6044306b3e8a7f46b4c341f9510c72739..37e6a5734d4b614946d9b3e5eae17c1e96cb99ba 100644 (file)
@@ -182,4 +182,5 @@ function sodium_bin2base64(string $string, int $id): string {}
 function sodium_base642bin(string $string, int $id, string $ignore  = ""): string {}
 #endif
 
+/** @alias sodium_crypto_box_publickey_from_secretkey */
 function sodium_crypto_scalarmult_base(string $key): string {}
index a4c02bd0ccc3c16b43e1f1117b5ab3af1d58ad9e..fc1f32731d1c88c27cbc19568194fe4c2db03f93 100644 (file)
@@ -27,37 +27,70 @@ function gzdecode(string $data, int $max_decoded_len = 0): string|false {}
 
 function gzuncompress(string $data, int $max_decoded_len = 0): string|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fwrite
+ */
 function gzwrite($fp, string $str, int $length = UNKNOWN): int|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fwrite
+ */
 function gzputs($fp, string $str, int $length = UNKNOWN): int|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias rewind
+ */
 function gzrewind($fp): bool {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fclose
+ */
 function gzclose($fp): bool {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias feof
+ */
 function gzeof($fp): bool {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fgetc
+ */
 function gzgetc($fp): string|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fpassthru
+ */
 function gzpassthru($fp): int {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fseek
+ */
 function gzseek($fp, int $offset, int $whence = SEEK_SET): int {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias ftell
+ */
 function gztell($fp): int|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fread
+ */
 function gzread($fp, int $length): string|false {}
 
-/** @param resource $fp */
+/**
+ * @param resource $fp
+ * @alias fgets
+ */
 function gzgets($fp, int $length = 1024): string|false {}
 
 /** @return resource|false */