Skip to content

Commit

Permalink
Merge remote-tracking branch 'tcm/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 18, 2024
2 parents 9813386 + f98860e commit c7b003a
Show file tree
Hide file tree
Showing 24 changed files with 508 additions and 90 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [staabm, shish, OskarStark]
4 changes: 2 additions & 2 deletions generated/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function curl_escape(\CurlHandle $handle, string $string): string
* stdout and returns TRUE.
* However, if the CURLOPT_RETURNTRANSFER
* option is set, it will return
* the result on success, FALSE on failure.
* the result on success.
* @throws CurlException
*
*/
Expand Down Expand Up @@ -284,7 +284,7 @@ function curl_init(?string $url = null): \CurlHandle
* @param \CurlMultiHandle $multi_handle A cURL multi handle returned by
* curl_multi_init.
* @param int|null $queued_messages Number of messages that are still in the queue
* @return array On success, returns an associative array for the message, FALSE on failure.
* @return array On success, returns an associative array for the message.
*
*
* Contents of the returned array
Expand Down
2 changes: 1 addition & 1 deletion generated/datetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ function strptime(string $timestamp, string $format): array
* @param string $datetime A date/time string. Valid formats are explained in Date and Time Formats.
* @param int $baseTimestamp The timestamp which is used as a base for the calculation of relative
* dates.
* @return int Returns a timestamp on success, FALSE otherwise.
* @return int Returns a timestamp on success.
* @throws DatetimeException
*
*/
Expand Down
1 change: 1 addition & 0 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@
'imap_unsubscribe',
'imap_utf8_to_mutf7',
'inet_ntop',
'inet_pton',
'inflate_add',
'inflate_get_read_len',
'inflate_init',
Expand Down
14 changes: 8 additions & 6 deletions generated/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,17 +755,18 @@ function imagecreate(int $width, int $height)
* representing the image obtained from the given filename.
*
* @param string $filename Path to the AVIF raster image.
* @return Returns an image object on success, FALSE on errors.
* @return \GdImage Returns an image object on success, FALSE on errors.
* @throws ImageException
*
*/
function imagecreatefromavif(string $filename): void
function imagecreatefromavif(string $filename): \GdImage
{
error_clear_last();
$safeResult = \imagecreatefromavif($filename);
if ($safeResult === false) {
throw ImageException::createFromPhpError();
}
return $safeResult;
}


Expand Down Expand Up @@ -939,17 +940,18 @@ function imagecreatefromstring(string $data)
* representing the image obtained from the given filename.
*
* @param string $filename Path to the Truevision TGA image.
* @return Returns an image object on success, FALSE on errors.
* @return \GdImage Returns an image object on success, FALSE on errors.
* @throws ImageException
*
*/
function imagecreatefromtga(string $filename): void
function imagecreatefromtga(string $filename): \GdImage
{
error_clear_last();
$safeResult = \imagecreatefromtga($filename);
if ($safeResult === false) {
throw ImageException::createFromPhpError();
}
return $safeResult;
}


Expand Down Expand Up @@ -1825,7 +1827,7 @@ function imagegif($image, $file = null): void
/**
* Grabs a screenshot of the whole screen.
*
* @return resource Returns an image object on success, FALSE on failure.
* @return resource Returns an image object on success.
* @throws ImageException
*
*/
Expand All @@ -1845,7 +1847,7 @@ function imagegrabscreen()
*
* @param int $handle The HWND window ID.
* @param bool $client_area Include the client area of the application window.
* @return \GdImage Returns an image object on success, FALSE on failure.
* @return \GdImage Returns an image object on success.
* @throws ImageException
*
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function ini_get(string $option): string
* ini_set. There is a list of all available options
* in the appendix.
* @param string $value The new value for the option.
* @return string Returns the old value on success, FALSE on failure.
* @return string Returns the old value on success.
* @throws InfoException
*
*/
Expand Down
2 changes: 1 addition & 1 deletion generated/libxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Retrieve last error from libxml.
*
* @return \LibXMLError Returns a LibXMLError object if there is any error in the
* buffer, FALSE otherwise.
* buffer.
* @throws LibxmlException
*
*/
Expand Down
4 changes: 2 additions & 2 deletions generated/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function define(string $constant_name, $value, bool $case_insensitive = false):
* highlighted code.
* @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.
* TRUE on success.
* @throws MiscException
*
*/
Expand Down Expand Up @@ -216,7 +216,7 @@ function sapi_windows_set_ctrl_handler($handler, bool $add = true): void


/**
* If enable is NULL, the function returns TRUE if the stream stream has VT100 control codes enabled, FALSE otherwise.
* If enable is NULL, the function returns TRUE if the stream stream has VT100 control codes enabled.
*
* If enable is a bool, the function will try to enable or disable the VT100 features of the stream stream.
* If the feature has been successfully enabled (or disabled).
Expand Down
24 changes: 24 additions & 0 deletions generated/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,30 @@ function inet_ntop(string $ip): string
}


/**
* This function converts a human readable IPv4 or IPv6 address (if PHP
* was built with IPv6 support enabled) into an address family appropriate
* 32bit or 128bit binary structure.
*
* @param string $ip A human readable IPv4 or IPv6 address.
* @return string Returns the in_addr representation of the given
* ip, or FALSE if a syntactically invalid
* ip is given (for example, an IPv4 address
* without dots or an IPv6 address without colons).
* @throws NetworkException
*
*/
function inet_pton(string $ip): string
{
error_clear_last();
$safeResult = \inet_pton($ip);
if ($safeResult === false) {
throw NetworkException::createFromPhpError();
}
return $safeResult;
}


/**
* Returns an enumeration of network interfaces (adapters) on the local machine.
*
Expand Down
Loading

0 comments on commit c7b003a

Please sign in to comment.