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 Feb 23, 2023
1 parent ebd255a commit f2fc635
Show file tree
Hide file tree
Showing 82 changed files with 910 additions and 430 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,4 @@ function virtual(string $uri): void
throw ApacheException::createFromPhpError();
}
}

1 change: 1 addition & 0 deletions generated/apcu.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ function unixtojd(int $timestamp = null): int
}
return $safeResult;
}

1 change: 1 addition & 0 deletions generated/classobj.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,4 @@ function variant_round($value, int $decimals)
}
return $safeResult;
}

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

7 changes: 7 additions & 0 deletions generated/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3039,6 +3039,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
* Option
* Set value to
* Notes
*
*
*
Expand All @@ -3053,13 +3054,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 +3089,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_READFUNCTION
*
* A callback accepting three parameters.
Expand All @@ -3099,6 +3103,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_WRITEFUNCTION
*
* A callback accepting two parameters.
Expand All @@ -3109,6 +3114,7 @@ function curl_multi_setopt(\CurlMultiHandle $multi_handle, int $option, $value):
*
*
*
*
* CURLOPT_XFERINFOFUNCTION
*
* A callback accepting two parameters.
Expand Down Expand Up @@ -3311,3 +3317,4 @@ function curl_upkeep(\CurlHandle $handle): void
throw CurlException::createFromPhpError($handle);
}
}

33 changes: 1 addition & 32 deletions generated/datetime.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,4 @@ function scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING,
}
return $safeResult;
}

0 comments on commit f2fc635

Please sign in to comment.