From 7219793fc47dfe615142bcb0481d1b52f627d1da Mon Sep 17 00:00:00 2001 From: Kharhamel Date: Fri, 18 Oct 2019 17:42:52 +0200 Subject: [PATCH] regenerated --- generated/apc.php | 5 ++--- generated/apcu.php | 2 +- generated/array.php | 6 +++--- generated/gmp.php | 3 ++- generated/image.php | 6 +++--- generated/imap.php | 6 +++--- generated/info.php | 4 ++-- generated/libxml.php | 2 +- generated/mailparse.php | 2 -- generated/mbstring.php | 6 +++--- generated/misc.php | 8 ++++---- generated/oci8.php | 13 +++---------- generated/pgsql.php | 9 ++++----- generated/sockets.php | 6 +++--- generated/sqlsrv.php | 6 +++--- generated/stream.php | 2 +- generated/uodbc.php | 2 +- generated/xmlrpc.php | 2 +- 18 files changed, 40 insertions(+), 50 deletions(-) diff --git a/generated/apc.php b/generated/apc.php index b98921eb..7930432c 100644 --- a/generated/apc.php +++ b/generated/apc.php @@ -159,19 +159,18 @@ function apc_delete_file($keys) /** * Removes a stored variable from the cache. * - * @param string|string[]|APCIterator $key The key used to store the value (with + * @param string|string[]|\APCIterator $key The key used to store the value (with * apc_store). * @throws ApcException * */ -function apc_delete($key) +function apc_delete($key): void { error_clear_last(); $result = \apc_delete($key); if ($result === false) { throw ApcException::createFromPhpError(); } - return $result; } diff --git a/generated/apcu.php b/generated/apcu.php index 2fde0146..3071a39f 100644 --- a/generated/apcu.php +++ b/generated/apcu.php @@ -72,7 +72,7 @@ function apcu_dec(string $key, int $step = 1, ?bool &$success = null, int $ttl = /** * Removes a stored variable from the cache. * - * @param string|string[]|APCUIterator $key A key used to store the value as a + * @param string|string[]|\APCUIterator $key A key used to store the value as a * string for a single key, * or as an array of strings for several keys, * or as an APCUIterator object. diff --git a/generated/array.php b/generated/array.php index ae3def53..40ce5bbb 100644 --- a/generated/array.php +++ b/generated/array.php @@ -43,7 +43,7 @@ function array_combine(array $keys, array $values): array * used as its value, and all others will be lost. * * @param array $array An array of key/value pairs to be flipped. - * @return array Returns the flipped array on success and NULL on failure. + * @return array Returns the flipped array on success. * @throws ArrayException * */ @@ -153,7 +153,7 @@ function array_multisort(array &$array1, $array1_sort_order = SORT_ASC, $array1_ * * @param array $array1 The array in which elements are replaced. * @param array $params Optional. Arrays from which elements will be extracted. - * @return array|null Returns an array, or NULL if an error occurs. + * @return array Returns an array. * @throws ArrayException * */ @@ -188,7 +188,7 @@ function array_replace_recursive(array $array1, array ...$params): array * @param array $array1 The array in which elements are replaced. * @param array $params Arrays from which elements will be extracted. * Values from later arrays overwrite the previous values. - * @return array|null Returns an array, or NULL if an error occurs. + * @return array Returns an array. * @throws ArrayException * */ diff --git a/generated/gmp.php b/generated/gmp.php index 95bd1c03..e99b8da3 100644 --- a/generated/gmp.php +++ b/generated/gmp.php @@ -78,11 +78,12 @@ function gmp_import(string $data, int $word_size = 1, int $options = GMP_MSW_FIR * @throws GmpException * */ -function gmp_random_seed($seed): void +function gmp_random_seed($seed): \GMP { error_clear_last(); $result = \gmp_random_seed($seed); if ($result === false) { throw GmpException::createFromPhpError(); } + return $result; } diff --git a/generated/image.php b/generated/image.php index baf5105b..dd5edc21 100644 --- a/generated/image.php +++ b/generated/image.php @@ -434,13 +434,14 @@ function imagecolormatch($image1, $image2): void * @throws ImageException * */ -function imageconvolution($image, array $matrix, float $div, float $offset): void +function imageconvolution($image, array $matrix, float $div, float $offset) { error_clear_last(); $result = \imageconvolution($image, $matrix, $div, $offset); if ($result === false) { throw ImageException::createFromPhpError(); } + return $result; } @@ -2614,7 +2615,6 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text) * right, upper right, upper left. The points are relative to the text * regardless of the angle, so "upper left" means in the top left-hand * corner when you see the text horizontally. - * Returns FALSE on error. * @throws ImageException * */ @@ -2722,7 +2722,7 @@ function imagexbm($image, ?string $filename = null, int $foreground = null): voi * @throws ImageException * */ -function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0) +function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0): array { error_clear_last(); $result = \iptcembed($iptcdata, $jpeg_file_name, $spool); diff --git a/generated/imap.php b/generated/imap.php index 49747ebc..2ab4e268 100644 --- a/generated/imap.php +++ b/generated/imap.php @@ -71,7 +71,7 @@ function imap_append($imap_stream, string $mailbox, string $message, string $opt * @throws ImapException * */ -function imap_check($imap_stream): object +function imap_check($imap_stream): \stdClass { error_clear_last(); $result = \imap_check($imap_stream); @@ -419,7 +419,7 @@ function imap_gc($imap_stream, int $caches): void * @throws ImapException * */ -function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, string $defaulthost = null): object +function imap_headerinfo($imap_stream, int $msg_number, int $fromlength = 0, int $subjectlength = 0, string $defaulthost = null): \stdClass { error_clear_last(); $result = \imap_headerinfo($imap_stream, $msg_number, $fromlength, $subjectlength, $defaulthost); @@ -581,7 +581,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio * @throws ImapException * */ -function imap_mailboxmsginfo($imap_stream): object +function imap_mailboxmsginfo($imap_stream): \stdClass { error_clear_last(); $result = \imap_mailboxmsginfo($imap_stream); diff --git a/generated/info.php b/generated/info.php index feba16df..f6cc0a41 100644 --- a/generated/info.php +++ b/generated/info.php @@ -167,7 +167,7 @@ function dl(string $library): void * * @return int Returns the time of the last modification of the current * page. The value returned is a Unix timestamp, suitable for - * feeding to date. Returns FALSE on error. + * feeding to date. * @throws InfoException * */ @@ -264,7 +264,7 @@ function getmyuid(): int * @throws InfoException * */ -function getopt(string $options, array $longopts = null, ?int &$optind = null): array +function getopt(string $options, array $longopts = null, ?int &$optind = null) { error_clear_last(); if ($optind !== null) { diff --git a/generated/libxml.php b/generated/libxml.php index 6d85cc32..cef784c4 100644 --- a/generated/libxml.php +++ b/generated/libxml.php @@ -7,7 +7,7 @@ /** * Retrieve last error from libxml. * - * @return libXMLError Returns a LibXMLError object if there is any error in the + * @return \LibXMLError Returns a LibXMLError object if there is any error in the * buffer, FALSE otherwise. * @throws LibxmlException * diff --git a/generated/mailparse.php b/generated/mailparse.php index db47bc4d..b2980c32 100644 --- a/generated/mailparse.php +++ b/generated/mailparse.php @@ -23,8 +23,6 @@ * * If callbackfunc is set to NULL, returns the * extracted section as a string. - * - * Returns FALSE on error. * @throws MailparseException * */ diff --git a/generated/mbstring.php b/generated/mbstring.php index 510fdaaf..d7410f71 100644 --- a/generated/mbstring.php +++ b/generated/mbstring.php @@ -282,7 +282,7 @@ function mb_eregi_replace(string $pattern, string $replace, string $string, stri * If encoding is omitted, * mb_http_output returns the current HTTP output * character encoding. - * @return string If encoding is omitted, + * @return string|bool If encoding is omitted, * mb_http_output returns the current HTTP output * character encoding. Otherwise, * Returns TRUE on success. @@ -312,7 +312,7 @@ function mb_http_output(string $encoding = null) * character encoding conversion, and the default character encoding * for string functions defined by the mbstring module. * You should notice that the internal encoding is totally different from the one for multibyte regex. - * @return string If encoding is set, then + * @return string|bool If encoding is set, then * Returns TRUE on success. * In this case, the character encoding for multibyte regex is NOT changed. * If encoding is omitted, then @@ -388,7 +388,7 @@ function mb_parse_str(string $encoded_string, ?array &$result = null): void * @param string $encoding The encoding * parameter is the character encoding. If it is omitted, the internal character * encoding value will be used. - * @return string + * @return string|bool * @throws MbstringException * */ diff --git a/generated/misc.php b/generated/misc.php index 0fcb5f30..ee4cd3ca 100644 --- a/generated/misc.php +++ b/generated/misc.php @@ -52,7 +52,7 @@ function define(string $name, $value, bool $case_insensitive = false): void * @param string $filename Path to the PHP file to be highlighted. * @param bool $return Set this parameter to TRUE to make this function return the * highlighted code. - * @return string If return is set to TRUE, returns the highlighted + * @return string|bool If return is set to TRUE, returns the highlighted * code as a string instead of printing it out. Otherwise, it will return * TRUE on success, FALSE on failure. * @throws MiscException @@ -75,7 +75,7 @@ function highlight_file(string $filename, bool $return = false) * @param string $str The PHP code to be highlighted. This should include the opening tag. * @param bool $return Set this parameter to TRUE to make this function return the * highlighted code. - * @return string If return is set to TRUE, returns the highlighted + * @return string|bool If return is set to TRUE, returns the highlighted * code as a string instead of printing it out. Otherwise, it will return * TRUE on success, FALSE on failure. * @throws MiscException @@ -101,7 +101,7 @@ function highlight_string(string $str, bool $return = false) * Either the codepage name or identifier. * @param string $subject The string to convert. * @return string The subject string converted to - * out_codepage, or NULL on failure. + * out_codepage. * @throws MiscException * */ @@ -195,7 +195,7 @@ function sleep(int $seconds): int * * @param int $seconds Must be a non-negative integer. * @param int $nanoseconds Must be a non-negative integer less than 1 billion. - * @return array{0:int,1:int} Returns TRUE on success. + * @return array{0:int,1:int}|bool Returns TRUE on success. * * If the delay was interrupted by a signal, an associative array will be * returned with the components: diff --git a/generated/oci8.php b/generated/oci8.php index 9fdbaa2f..f2bac278 100644 --- a/generated/oci8.php +++ b/generated/oci8.php @@ -1265,11 +1265,11 @@ function oci_pconnect(string $username, string $password, string $connection_str * describes the column as, which is uppercase for columns created * case insensitively. * @return string Returns everything as strings except for abstract types (ROWIDs, LOBs and - * FILEs). Returns FALSE on error. + * FILEs). * @throws Oci8Exception * */ -function oci_result($statement, $field) +function oci_result($statement, $field): string { error_clear_last(); $result = \oci_result($statement, $field); @@ -1686,14 +1686,7 @@ function oci_set_prefetch($statement, int $rows): void * * * - * UNKNOWN - * - * - * - * - * - * - * Returns FALSE on error. + * UNKNOW. * @throws Oci8Exception * */ diff --git a/generated/pgsql.php b/generated/pgsql.php index 52dca075..a8f9e0f6 100644 --- a/generated/pgsql.php +++ b/generated/pgsql.php @@ -688,7 +688,7 @@ function pg_last_error($connection = null): string * @throws PgsqlException * */ -function pg_last_notice($connection, int $option = PGSQL_NOTICE_LAST) +function pg_last_notice($connection, int $option = PGSQL_NOTICE_LAST): string { error_clear_last(); $result = \pg_last_notice($connection, $option); @@ -1485,11 +1485,11 @@ function pg_query($connection = null, string $query = null) * PGSQL_DIAG_CONTEXT, PGSQL_DIAG_SOURCE_FILE, * PGSQL_DIAG_SOURCE_LINE or * PGSQL_DIAG_SOURCE_FUNCTION. - * @return string|null A string containing the contents of the error field. + * @return string|null A string containing the contents of the error field, NULL if the field does not exist. * @throws PgsqlException * */ -function pg_result_error_field($result, int $fieldcode): string +function pg_result_error_field($result, int $fieldcode): ?string { error_clear_last(); $result = \pg_result_error_field($result, $fieldcode); @@ -1859,8 +1859,7 @@ function pg_update($connection, string $table_name, array $data, array $conditio * is used. The default connection is the last connection made by * pg_connect or pg_pconnect. * @return array Returns an array with client, protocol - * and server keys and values (if available). Returns - * FALSE on error or invalid connection. + * and server keys and values (if available) or invalid connection. * @throws PgsqlException * */ diff --git a/generated/sockets.php b/generated/sockets.php index 0d6385b4..7273d079 100644 --- a/generated/sockets.php +++ b/generated/sockets.php @@ -50,7 +50,7 @@ function socket_accept($socket) * value of this function may be used with socket_listen. * * @param resource $addr Resource created from socket_addrinfo_lookup(). - * @return resource|null Returns a Socket resource on success or NULL on failure. + * @return resource Returns a Socket resource on success. * @throws SocketsException * */ @@ -70,7 +70,7 @@ function socket_addrinfo_bind($addr) * value of this function may be used with the rest of the socket functions. * * @param resource $addr Resource created from socket_addrinfo_lookup() - * @return resource|null Returns a Socket resource on success or NULL on failure. + * @return resource Returns a Socket resource on success. * @throws SocketsException * */ @@ -380,7 +380,7 @@ function socket_getsockname($socket, ?string &$addr, ?int &$port = null): void * Imports a stream that encapsulates a socket into a socket extension resource. * * @param resource $stream The stream resource to import. - * @return resource Returns FALSE or NULL on failure. + * @return resource|false Returns FALSE. * @throws SocketsException * */ diff --git a/generated/sqlsrv.php b/generated/sqlsrv.php index 7d7aeec2..e93aa37a 100644 --- a/generated/sqlsrv.php +++ b/generated/sqlsrv.php @@ -276,7 +276,7 @@ function sqlsrv_get_field($stmt, int $fieldIndex, int $getAsType = null) * @throws SqlsrvException * */ -function sqlsrv_next_result($stmt) +function sqlsrv_next_result($stmt): ?bool { error_clear_last(); $result = \sqlsrv_next_result($stmt); @@ -297,7 +297,7 @@ function sqlsrv_next_result($stmt) * @throws SqlsrvException * */ -function sqlsrv_num_fields($stmt) +function sqlsrv_num_fields($stmt): int { error_clear_last(); $result = \sqlsrv_num_fields($stmt); @@ -325,7 +325,7 @@ function sqlsrv_num_fields($stmt) * @throws SqlsrvException * */ -function sqlsrv_num_rows($stmt) +function sqlsrv_num_rows($stmt): int { error_clear_last(); $result = \sqlsrv_num_rows($stmt); diff --git a/generated/stream.php b/generated/stream.php index ecdfd9fc..573d0295 100644 --- a/generated/stream.php +++ b/generated/stream.php @@ -439,7 +439,7 @@ function stream_socket_client(string $remote_socket, int &$errno = null, string * @throws StreamException * */ -function stream_socket_pair(int $domain, int $type, int $protocol): array +function stream_socket_pair(int $domain, int $type, int $protocol): iterable { error_clear_last(); $result = \stream_socket_pair($domain, $type, $protocol); diff --git a/generated/uodbc.php b/generated/uodbc.php index c12e94c0..01041ab6 100644 --- a/generated/uodbc.php +++ b/generated/uodbc.php @@ -596,7 +596,7 @@ function odbc_longreadlen($result_id, int $length): void * see odbc_connect for details. * @param string $query_string The query string statement being prepared. * @return resource Returns an ODBC result identifier if the SQL command was prepared - * successfully. Returns FALSE on error. + * successfully. * @throws UodbcException * */ diff --git a/generated/xmlrpc.php b/generated/xmlrpc.php index a4686481..15364fb4 100644 --- a/generated/xmlrpc.php +++ b/generated/xmlrpc.php @@ -7,7 +7,7 @@ /** * Sets xmlrpc type, base64 or datetime, for a PHP string value. * - * @param string|DateTime $value Value to set the type + * @param string|\DateTime $value Value to set the type * @param string $type 'base64' or 'datetime' * @throws XmlrpcException *