Skip to content

Commit

Permalink
Automatically regenerate the files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharhamel committed Mar 10, 2023
1 parent ebd255a commit 766397e
Show file tree
Hide file tree
Showing 82 changed files with 915 additions and 602 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -43,7 +43,6 @@
"generated/ftp.php",
"generated/funchand.php",
"generated/gettext.php",
"generated/gmp.php",
"generated/gnupg.php",
"generated/hash.php",
"generated/ibase.php",
Expand Down Expand Up @@ -73,6 +72,7 @@
"generated/ps.php",
"generated/pspell.php",
"generated/readline.php",
"generated/rnp.php",
"generated/rpminfo.php",
"generated/rrd.php",
"generated/sem.php",
Expand Down
@@ -1,7 +1,7 @@
<?php
namespace Safe\Exceptions;

class GmpException extends \ErrorException implements SafeExceptionInterface
class RnpException extends \ErrorException implements SafeExceptionInterface
{
public static function createFromPhpError(): self
{
Expand Down
1 change: 1 addition & 0 deletions generated/apache.php
Expand Up @@ -197,3 +197,4 @@ function virtual(string $uri): void
throw ApacheException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/apcu.php
Expand Up @@ -110,3 +110,4 @@ function apcu_sma_info(bool $limited = false): array
}
return $safeResult;
}

3 changes: 1 addition & 2 deletions generated/array.php
Expand Up @@ -42,8 +42,6 @@ function array_walk_recursive(&$array, callable $callback, $arg = null): void

/**
* This function shuffles (randomizes the order of the elements in) an array.
* It uses a pseudo random number generator that is not suitable for
* cryptographic purposes.
*
* @param array $array The array.
* @throws ArrayException
Expand All @@ -57,3 +55,4 @@ function shuffle(array &$array): void
throw ArrayException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/bzip2.php
Expand Up @@ -95,3 +95,4 @@ function bzwrite($bz, string $data, int $length = null): int
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/calendar.php
Expand Up @@ -28,3 +28,4 @@ function unixtojd(int $timestamp = null): int
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/classobj.php
Expand Up @@ -23,3 +23,4 @@ function class_alias(string $class, string $alias, bool $autoload = true): void
throw ClassobjException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/com.php
Expand Up @@ -194,3 +194,4 @@ function variant_round($value, int $decimals)
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/cubrid.php
Expand Up @@ -2036,3 +2036,4 @@ function cubrid_set_query_timeout($req_identifier, int $timeout): void
throw CubridException::createFromPhpError();
}
}

12 changes: 10 additions & 2 deletions generated/curl.php
Expand Up @@ -1777,8 +1777,9 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
* CURL_SSLVERSION_SSLv2 (2),
* CURL_SSLVERSION_SSLv3 (3),
* CURL_SSLVERSION_TLSv1_0 (4),
* CURL_SSLVERSION_TLSv1_1 (5) or
* CURL_SSLVERSION_TLSv1_2 (6).
* CURL_SSLVERSION_TLSv1_1 (5),
* CURL_SSLVERSION_TLSv1_2 (6) or
* CURL_SSLVERSION_TLSv1_3 (7).
* The maximum TLS version can be set by using one of the CURL_SSLVERSION_MAX_*
* constants. It is also possible to OR one of the CURL_SSLVERSION_*
* constants with one of the CURL_SSLVERSION_MAX_* constants.
Expand Down Expand Up @@ -3039,6 +3040,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
* Option
* Set value to
* Notes
*
*
*
Expand All @@ -3053,13 +3055,15 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_PASSWDFUNCTION
*
* A callback accepting three parameters.
* The first is the cURL resource, the second is a
* string containing a password prompt, and the third is the maximum
* password length. Return the string containing the password.
*
* Removed as of PHP 7.3.0.
*
*
* CURLOPT_PROGRESSFUNCTION
Expand All @@ -3086,6 +3090,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_READFUNCTION
*
* A callback accepting three parameters.
Expand All @@ -3099,6 +3104,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_WRITEFUNCTION
*
* A callback accepting two parameters.
Expand All @@ -3109,6 +3115,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_XFERINFOFUNCTION
*
* A callback accepting two parameters.
Expand Down Expand Up @@ -3311,3 +3318,4 @@ function curl_upkeep(\CurlHandle $handle): void
throw CurlException::createFromPhpError($handle);
}
}

33 changes: 1 addition & 32 deletions generated/datetime.php
Expand Up @@ -443,38 +443,6 @@ function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, fl
}


/**
* Returns a string formatted according to the given format string using the
* given integer timestamp (Unix timestamp) or the current time
* if no timestamp is given. In other words, timestamp
* is optional and defaults to the value of time.
*
* @param string $format Format accepted by DateTimeInterface::format.
* @param int $timestamp The optional timestamp parameter is an
* int Unix timestamp that defaults to the current
* local time if timestamp is omitted or NULL. In other
* words, it defaults to the value of time.
* @return string Returns a formatted date string. If a non-numeric value is used for
* timestamp, FALSE is returned and an
* E_WARNING level error is emitted.
* @throws DatetimeException
*
*/
function date(string $format, int $timestamp = null): string
{
error_clear_last();
if ($timestamp !== null) {
$safeResult = \date($format, $timestamp);
} else {
$safeResult = \date($format);
}
if ($safeResult === false) {
throw DatetimeException::createFromPhpError();
}
return $safeResult;
}


/**
* Identical to mktime except the passed parameters represents a
* GMT date. gmmktime internally uses mktime
Expand Down Expand Up @@ -1157,3 +1125,4 @@ function timezone_name_from_abbr(string $abbr, int $utcOffset = -1, int $isDST =
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/dir.php
Expand Up @@ -132,3 +132,4 @@ function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING,
}
return $safeResult;
}

0 comments on commit 766397e

Please sign in to comment.