Revert function duplication

More granular approach is needed
This commit is contained in:
Maxim.Kolmakov 2020-11-17 12:49:11 +01:00
parent 219805876e
commit 805481d493
11 changed files with 57 additions and 1310 deletions

View File

@ -1,7 +1,6 @@
<?php
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
class CURLFile {
@ -76,8 +75,6 @@ class CURLFile {
public function __wakeup() {
}
}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Initialize a cURL session
* @link https://php.net/manual/en/function.curl-init.php
@ -86,20 +83,7 @@ class CURLFile {
* to its value. You can manually set this using the
* curl_setopt function.
* </p>
* @return false|CurlHandle a cURL handle on success, false on errors.
*/
function curl_init ($url = null) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize a cURL session
* @link https://php.net/manual/en/function.curl-init.php
* @param string $url [optional] <p>
* If provided, the CURLOPT_URL option will be set
* to its value. You can manually set this using the
* curl_setopt function.
* </p>
* @return resource|false a cURL handle on success, false on errors.
* @return resource|false|CurlHandle a cURL handle on success, false on errors.
*/
function curl_init ($url = null) {}
@ -2168,22 +2152,11 @@ function curl_setopt_array ($handle, array $options) {}
*/
function curl_share_close ($share_handle) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Initialize a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-init.php
* @return CurlShareHandle Returns resource of type "cURL Share Handle".
* @since 5.5
*/
function curl_share_init () {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Initialize a cURL share handle
* @link https://secure.php.net/manual/en/function.curl-share-init.php
* @return resource Returns resource of type "cURL Share Handle".
* @return resource|CurlShareHandle Returns resource of type "cURL Share Handle".
* @since 5.5
*/
function curl_share_init () {}
@ -2395,19 +2368,10 @@ function curl_file_create($filename, $mime_type = '', $posted_filename = '') {}
*/
function curl_close ($handle) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Returns a new cURL multi handle
* @link https://php.net/manual/en/function.curl-multi-init.php
* @return false|CurlMultiHandle a cURL multi handle resource on success, false on failure.
*/
function curl_multi_init () {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Returns a new cURL multi handle
* @link https://php.net/manual/en/function.curl-multi-init.php
* @return resource|false a cURL multi handle resource on success, false on failure.
* @return resource|false|CurlMultiHandle a cURL multi handle resource on success, false on failure.
*/
function curl_multi_init () {}

View File

@ -2,28 +2,15 @@
// Start of enchant v.1.1.0
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new broker object capable of requesting
* @link https://php.net/manual/en/function.enchant-broker-init.php
* @return false|EnchantBroker a broker resource on success or <b>FALSE</b>.
* @return resource|false|EnchantBroker a broker resource on success or <b>FALSE</b>.
*/
function enchant_broker_init () {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new broker object capable of requesting
* @link https://php.net/manual/en/function.enchant-broker-init.php
* @return false|resource a broker resource on success or <b>FALSE</b>.
*/
function enchant_broker_init()
{
}
/**
* Free the broker resource and its dictionaries
* @link https://php.net/manual/en/function.enchant-broker-free.php
@ -77,7 +64,6 @@ function enchant_broker_get_dict_path ($broker, $dict_type) {}
*/
function enchant_broker_list_dicts ($broker) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new dictionary using a tag
@ -88,26 +74,10 @@ function enchant_broker_list_dicts ($broker) {}
* @param string $tag <p>
* A tag describing the locale, for example en_US, de_DE
* </p>
* @return resource|false a dictionary resource on success or <b>FALSE</b> on failure.
* @return resource|false|EnchantDictionary a dictionary resource on success or <b>FALSE</b> on failure.
*/
function enchant_broker_request_dict ($broker, $tag) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* create a new dictionary using a tag
* @link https://php.net/manual/en/function.enchant-broker-request-dict.php
* @param resource $broker <p>
* Broker resource
* </p>
* @param string $tag <p>
* A tag describing the locale, for example en_US, de_DE
* </p>
* @return EnchantDictionary|false a dictionary resource on success or <b>FALSE</b> on failure.
*/
function enchant_broker_request_dict ($broker, $tag) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* creates a dictionary using a PWL file
@ -118,22 +88,7 @@ function enchant_broker_request_dict ($broker, $tag) {}
* @param string $filename <p>
* Path to the PWL file.
* </p>
* @return false|EnchantDictionary a dictionary resource on success or <b>FALSE</b> on failure.
*/
function enchant_broker_request_pwl_dict ($broker, $filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 5 &gt;= 5.3.0, PECL enchant &gt;= 0.1.0 )<br/>
* creates a dictionary using a PWL file
* @link https://php.net/manual/en/function.enchant-broker-request-pwl-dict.php
* @param resource $broker <p>
* Broker resource
* </p>
* @param string $filename <p>
* Path to the PWL file.
* </p>
* @return resource|false a dictionary resource on success or <b>FALSE</b> on failure.
* @return resource|false|EnchantDictionary a dictionary resource on success or <b>FALSE</b> on failure.
*/
function enchant_broker_request_pwl_dict ($broker, $filename) {}

471
gd/gd.php
View File

@ -1,7 +1,6 @@
<?php
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -224,37 +223,19 @@ function imagecolorallocate ($image, $red, $green, $blue) {}
*/
function imagepalettecopy ($destination, $source) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from the image stream in the string
* @link https://php.net/manual/en/function.imagecreatefromstring.php
* @param string $image <p>
* A string containing the image data.
* </p>
* @return GdImage|false An image resource will be returned on success. <b>FALSE</b> is returned if
* @return resource|GdImage|false An image resource will be returned on success. <b>FALSE</b> is returned if
* the image type is unsupported, the data is not in a recognised format,
* or the image is corrupt and cannot be loaded.
*/
#[Pure]
function imagecreatefromstring ($image) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from the image stream in the string
* @link https://php.net/manual/en/function.imagecreatefromstring.php
* @param string $image <p>
* A string containing the image data.
* </p>
* @return resource|false An image resource will be returned on success. <b>FALSE</b> is returned if
* the image type is unsupported, the data is not in a recognised format,
* or the image is corrupt and cannot be loaded.
*/
#[Pure]
function imagecreatefromstring($image)
{
}
/**
* Get the index of the closest color to the specified color
* @link https://php.net/manual/en/function.imagecolorclosest.php
@ -515,7 +496,6 @@ function imagecopymergegray ($dst_im, $src_im, $dst_x, $dst_y, $src_x, $src_y, $
*/
function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new palette based image
* @link https://php.net/manual/en/function.imagecreate.php
@ -525,29 +505,11 @@ function imagecopyresized ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_
* @param int $height <p>
* The image height.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
#[Pure]
function imagecreate ($width, $height) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new palette based image
* @link https://php.net/manual/en/function.imagecreate.php
* @param int $width <p>
* The image width.
* </p>
* @param int $height <p>
* The image height.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
#[Pure]
function imagecreate($width, $height)
{
}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new true color image
* @link https://php.net/manual/en/function.imagecreatetruecolor.php
@ -557,42 +519,15 @@ function imagecreate($width, $height)
* @param int $height <p>
* Image height.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
#[Pure]
function imagecreatetruecolor ($width, $height) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new true color image
* @link https://php.net/manual/en/function.imagecreatetruecolor.php
* @param int $width <p>
* Image width.
* </p>
* @param int $height <p>
* Image height.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
#[Pure]
function imagecreatetruecolor ($width, $height) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Finds whether an image is a truecolor image
* @link https://php.net/manual/en/function.imageistruecolor.php
* @param GdImage $image
* @return bool true if the image is truecolor, false
* otherwise.
*/
#[Pure]
function imageistruecolor ($image) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Finds whether an image is a truecolor image
* @link https://php.net/manual/en/function.imageistruecolor.php
* @param resource $image
* @param resource|GdImage $image
* @return bool true if the image is truecolor, false
* otherwise.
*/
@ -835,7 +770,6 @@ function imagecolorexactalpha ($image, $red, $green, $blue, $alpha) {}
*/
function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Rotate an image with a given angle
* @link https://php.net/manual/en/function.imagerotate.php
@ -849,25 +783,7 @@ function imagecopyresampled ($dst_image, $src_image, $dst_x, $dst_y, $src_x, $sr
* @param int $ignore_transparent [optional] <p>
* If set and non-zero, transparent colors are ignored (otherwise kept).
* </p>
* @return resource|false the rotated image or <b>FALSE</b> on failure
*/
function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Rotate an image with a given angle
* @link https://php.net/manual/en/function.imagerotate.php
* @param resource|GdImage $image
* @param float $angle <p>
* Rotation angle, in degrees.
* </p>
* @param int $bgd_color <p>
* Specifies the color of the uncovered zone after the rotation
* </p>
* @param int $ignore_transparent [optional] <p>
* If set and non-zero, transparent colors are ignored (otherwise kept).
* </p>
* @return GdImage|false the rotated image or <b>FALSE</b> on failure
* @return resource|GdImage|false the rotated image or <b>FALSE</b> on failure
*/
function imagerotate ($image, $angle, $bgd_color, $ignore_transparent = null) {}
@ -918,208 +834,97 @@ function imagesetbrush ($image, $brush) {}
*/
function imagesetstyle ($image, array $style) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefrompng.php
* @param string $filename <p>
* Path to the PNG image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefrompng ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefrompng.php
* @param string $filename <p>
* Path to the PNG image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefrompng ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromgif.php
* @param string $filename <p>
* Path to the GIF image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgif ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromgif.php
* @param string $filename <p>
* Path to the GIF image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgif ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromjpeg.php
* @param string $filename <p>
* Path to the JPEG image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromjpeg ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromjpeg.php
* @param string $filename <p>
* Path to the JPEG image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromjpeg ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwbmp.php
* @param string $filename <p>
* Path to the WBMP image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromwbmp ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwbmp.php
* @param string $filename <p>
* Path to the WBMP image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromwbmp ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwebp.php
* @param string $filename <p>
* Path to the WebP image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
* @since 5.4
*/
function imagecreatefromwebp ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromwebp.php
* @param string $filename <p>
* Path to the WebP image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
* @since 5.4
*/
function imagecreatefromwebp ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxbm.php
* @param string $filename <p>
* Path to the XBM image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromxbm ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxbm.php
* @param string $filename <p>
* Path to the XBM image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromxbm ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxpm.php
* @param string $filename <p>
* Path to the XPM image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromxpm ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from file or URL
* @link https://php.net/manual/en/function.imagecreatefromxpm.php
* @param string $filename <p>
* Path to the XPM image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromxpm ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from GD file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd.php
* @param string $filename <p>
* Path to the GD file.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd.php
* @param string $filename <p>
* Path to the GD file.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2.php
* @param string $filename <p>
* Path to the GD2 image.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd2 ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2.php
* @param string $filename <p>
* Path to the GD2 image.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd2 ($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a new image from a given part of GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2part.php
@ -1138,30 +943,7 @@ function imagecreatefromgd2 ($filename) {}
* @param int $height <p>
* Source height.
* </p>
* @return GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a new image from a given part of GD2 file or URL
* @link https://php.net/manual/en/function.imagecreatefromgd2part.php
* @param string $filename <p>
* Path to the GD2 image.
* </p>
* @param int $srcX <p>
* x-coordinate of source point.
* </p>
* @param int $srcY <p>
* y-coordinate of source point.
* </p>
* @param int $width <p>
* Source width.
* </p>
* @param int $height <p>
* Source height.
* </p>
* @return resource|false an image resource identifier on success, false on errors.
* @return resource|GdImage|false an image resource identifier on success, false on errors.
*/
function imagecreatefromgd2part ($filename, $srcX, $srcY, $width, $height) {}
@ -1330,7 +1112,6 @@ function imagegammacorrect ($image, $inputgamma, $outputgamma) {}
*/
function imagefill ($image, $x, $y, $color) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Draw a filled polygon
* @link https://php.net/manual/en/function.imagefilledpolygon.php
@ -1350,26 +1131,6 @@ function imagefill ($image, $x, $y, $color) {}
*/
function imagefilledpolygon ($image, array $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Draw a filled polygon
* @link https://php.net/manual/en/function.imagefilledpolygon.php
* @param resource|GdImage $image
* @param array $points <p>
* An array containing the x and y
* coordinates of the polygons vertices consecutively.
* </p>
* @param int $num_points <p>
* Total number of vertices, which must be at least 3.
* </p>
* @param int $color <p>
* A color identifier created with
* imagecolorallocate.
* </p>
* @return bool true on success or false on failure.
*/
function imagefilledpolygon ($image, array $points, $num_points, $color) {}
/**
* Draw a filled rectangle
* @link https://php.net/manual/en/function.imagefilledrectangle.php
@ -1524,7 +1285,6 @@ function imageline ($image, $x1, $y1, $x2, $y2, $color) {}
*/
function imageloadfont ($file) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Draws a polygon
* @link https://php.net/manual/en/function.imagepolygon.php
@ -1559,41 +1319,6 @@ function imageloadfont ($file) {}
*/
function imagepolygon ($image, array $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Draws a polygon
* @link https://php.net/manual/en/function.imagepolygon.php
* @param resource|GdImage $image
* @param array $points <p>
* An array containing the polygon's vertices, e.g.:
* <tr valign="top">
* <td>points[0]</td>
* <td>= x0</td>
* </tr>
* <tr valign="top">
* <td>points[1]</td>
* <td>= y0</td>
* </tr>
* <tr valign="top">
* <td>points[2]</td>
* <td>= x1</td>
* </tr>
* <tr valign="top">
* <td>points[3]</td>
* <td>= y1</td>
* </tr>
* </p>
* @param int $num_points <p>
* Total number of points (vertices).
* </p>
* @param int $color <p>
* A color identifier created with
* imagecolorallocate.
* </p>
* @return bool true on success or false on failure.
*/
function imagepolygon ($image, array $points, $num_points, $color) {}
/**
* Draw a rectangle
* @link https://php.net/manual/en/function.imagerectangle.php
@ -2085,27 +1810,13 @@ function imageftbbox ($size, $angle, $fontfile, $text, $extrainfo = null ) {}
*/
function imagefttext ($image, $size, $angle, $x, $y, $color, $fontfile, $text, $extrainfo = null ) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Load a PostScript Type 1 font from file
* @link https://php.net/manual/en/function.imagepsloadfont.php
* @param string $filename <p>
* Path to the Postscript font file.
* </p>
* @return GdImage|false In the case everything went right, a valid font index will be returned and
* can be used for further purposes. Otherwise the function returns false.
* @removed 7.0 This function was REMOVED in PHP 7.0.0.
*/
function imagepsloadfont ($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Load a PostScript Type 1 font from file
* @link https://php.net/manual/en/function.imagepsloadfont.php
* @param string $filename <p>
* Path to the Postscript font file.
* </p>
* @return resource|false In the case everything went right, a valid font index will be returned and
* @return resource|GdImage|false In the case everything went right, a valid font index will be returned and
* can be used for further purposes. Otherwise the function returns false.
* @removed 7.0 This function was REMOVED in PHP 7.0.0.
*/
@ -2476,7 +2187,6 @@ function imagesetclip ($im, $x1, $y1, $x2, $y2) {}
*/
function imagegetclip ($im) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* <b>imageopenpolygon()</b> draws an open polygon on the given <b>image.</b> Contrary to {@see imagepolygon()}, no line is drawn between the last and the first point.
* @param resource|GdImage $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
@ -2496,43 +2206,11 @@ function imagegetclip ($im) {}
*/
function imageopenpolygon ($image , $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* <b>imageopenpolygon()</b> draws an open polygon on the given <b>image.</b> Contrary to {@see imagepolygon()}, no line is drawn between the last and the first point.
* @param resource|GdImage $image An image resource, returned by one of the image creation functions, such as {@see imagecreatetruecolor()}.
* @param array $points An array containing the polygon's vertices, e.g.:
* <pre>
* points[0] = x0
* points[1] = y0
* points[2] = x1
* points[3] = y1
* </pre>
* @param int $num_points Total number of points (vertices).
* @param int $color A color identifier created with {@see imagecolorallocate()}.
* @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
* @link https://php.net/manual/en/function.imageopenpolygon.php
* @since 7.2
* @see imageplygon()
*/
function imageopenpolygon ($image , $points, $num_points, $color) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* <b>imagecreatefrombmp()</b> returns an image identifier representing the image obtained from the given filename.
* <b>TIP</b> A URL can be used as a filename with this function if the fopen wrappers have been enabled. See {@see fopen()} for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
* @param string $filename Path to the BMP image.
* @return GdImage|false Returns an image resource identifier on success, <b>FALSE</b> on errors.
* @link https://php.net/manual/en/function.imagecreatefrombmp.php
* @since 7.2
*/
function imagecreatefrombmp($filename){}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* <b>imagecreatefrombmp()</b> returns an image identifier representing the image obtained from the given filename.
* <b>TIP</b> A URL can be used as a filename with this function if the fopen wrappers have been enabled. See {@see fopen()} for more details on how to specify the filename. See the Supported Protocols and Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide.
* @param string $filename Path to the BMP image.
* @return resource|false Returns an image resource identifier on success, <b>FALSE</b> on errors.
* @return resource|GdImage|false Returns an image resource identifier on success, <b>FALSE</b> on errors.
* @link https://php.net/manual/en/function.imagecreatefrombmp.php
* @since 7.2
*/
@ -2553,43 +2231,22 @@ function imagecreatefrombmp($filename){}
*/
function imagebmp ($image, $to = null, $compressed = true) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* @param string $filename
* @return GdImage|false
* @return resource|GdImage|false
*/
function imagecreatefromtga($filename) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @param string $filename
* @return resource|false
*/
function imagecreatefromtga($filename) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Captures the whole screen
*
* https://www.php.net/manual/en/function.imagegrabscreen.php
*
* @return GdImage|false
* @return resource|GdImage|false
*/
#[Pure]
function imagegrabscreen() {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Captures the whole screen
*
* https://www.php.net/manual/en/function.imagegrabscreen.php
*
* @return resource|false
*/
#[Pure]
function imagegrabscreen() {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Captures a window
*
@ -2597,20 +2254,7 @@ function imagegrabscreen() {}
*
* @param int $handle
* @param int|null $client_area
* @return GdImage|false
*/
#[Pure]
function imagegrabwindow($handle, $client_area = null) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Captures a window
*
* @link https://www.php.net/manual/en/function.imagegrabwindow.php
*
* @param int $handle
* @param int|null $client_area
* @return resource|false
* @return resource|GdImage|false
*/
#[Pure]
function imagegrabwindow($handle, $client_area = null) {}
@ -3192,7 +2836,6 @@ define('IMG_TRIANGLE', 20);
define('IMG_TGA', 128);
#[PhpStormStubsElementAvailable('8.0')]
/**
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffine.php
@ -3200,19 +2843,7 @@ define('IMG_TGA', 128);
* such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
* @param array $affine <p>Array with keys 0 to 5.</p>
* @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
* @return GdImage|false Return affined image resource on success or FALSE on failure.
*/
function imageaffine($image, $affine, $clip = null) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link https://secure.php.net/manual/en/function.imageaffine.php
* @param resource|GdImage $image <p>An image resource, returned by one of the image creation functions,
* such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
* @param array $affine <p>Array with keys 0 to 5.</p>
* @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|false Return affined image resource on success or FALSE on failure.
* @return resource|GdImage|false Return affined image resource on success or FALSE on failure.
*/
function imageaffine($image, $affine, $clip = null) {}
@ -3236,7 +2867,6 @@ function imageaffinematrixconcat(array $m1, array $m2) {}
*/
function imageaffinematrixget ($type, $options = null) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Crop an image using the given coordinates and size, x, y, width and height
* @link https://secure.php.net/manual/en/function.imagecrop.php
@ -3244,29 +2874,15 @@ function imageaffinematrixget ($type, $options = null) {}
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
* @return GdImage|false Return cropped image resource on success or FALSE on failure.
* @return resource|GdImage|false Return cropped image resource on success or FALSE on failure.
* @since 5.5
*/
function imagecrop ($image, $rect) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Crop an image using the given coordinates and size, x, y, width and height
* @link https://secure.php.net/manual/en/function.imagecrop.php
* @param resource|GdImage $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|false Return cropped image resource on success or FALSE on failure.
* @since 5.5
*/
function imagecrop ($image, $rect) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Crop an image automatically using one of the available modes
* @link https://secure.php.net/manual/en/function.imagecropauto.php
* @param GdImage $image <p>
* @param resource|GdImage $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode [optional] <p>
@ -3279,29 +2895,7 @@ function imagecrop ($image, $rect) {}
* <p>
* Used in <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @return GdImage|bool Return cropped image resource on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Crop an image automatically using one of the available modes
* @link https://secure.php.net/manual/en/function.imagecropauto.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode [optional] <p>
* One of <b>IMG_CROP_*</b> constants.
* </p>
* @param float $threshold [optional] <p>
* Used <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @param int $color [optional]
* <p>
* Used in <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @return resource|bool Return cropped image resource on success or <b>FALSE</b> on failure.
* @return resource|GdImage|bool Return cropped image resource on success or <b>FALSE</b> on failure.
* @since 5.5
*/
function imagecropauto ($image, $mode = IMG_CROP_DEFAULT, $threshold = .5, $color = -1) {}
@ -3358,7 +2952,6 @@ function imageflip ($image, $mode) {}
*/
function imagepalettetotruecolor ($image) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* @since 5.5
* Scale an image using the given new width and height
@ -3369,23 +2962,9 @@ function imagepalettetotruecolor ($image) {}
* @param int $new_width
* @param int $new_height [optional]
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return GdImage|false Return scaled image resource on success or <b>FALSE</b> on failure.
* @return resource|GdImage|false Return scaled image resource on success or <b>FALSE</b> on failure.
*/
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @since 5.5
* Scale an image using the given new width and height
* @link https://secure.php.net/manual/en/function.imagescale.php
* @param resource|GdImage $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link https://secure.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $new_width
* @param int $new_height [optional]
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return resource|false Return scaled image resource on success or <b>FALSE</b> on failure.
*/
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
/**

View File

@ -2,7 +2,6 @@
// Start of openssl v.
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
/**
* Frees a private key
@ -15,7 +14,6 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[Deprecated(since: '8.0')]
function openssl_pkey_free($key) { }
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Generates a new private key
* @link https://php.net/manual/en/function.openssl-pkey-new.php
@ -30,23 +28,6 @@ function openssl_pkey_free($key) { }
*/
function openssl_pkey_new(array $options = null) { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Generates a new private key
* @link https://php.net/manual/en/function.openssl-pkey-new.php
* @param array $options [optional] <p>
* You can finetune the key generation (such as specifying the number of
* bits) using <i>configargs</i>. See
* <b>openssl_csr_new</b> for more information about
* <i>configargs</i>.
* </p>
* @return OpenSSLAsymmetricKey|false a resource identifier for the pkey on success, or false on
* error.
*/
function openssl_pkey_new(array $options = null)
{
}
/**
* Gets an exportable representation of a key into a string
* @link https://php.net/manual/en/function.openssl-pkey-export.php
@ -237,8 +218,6 @@ function openssl_spki_export_challenge (&$spki ) {}
* @since 5.6
*/
function openssl_spki_export (&$spki ) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Parse an X.509 certificate and return a resource identifier for
* it
@ -248,18 +227,6 @@ function openssl_spki_export (&$spki ) {}
*/
function openssl_x509_read($certificate) { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Parse an X.509 certificate and return a resource identifier for
* it
* @link https://php.net/manual/en/function.openssl-x509-read.php
* @param mixed $certificate
* @return OpenSSLCertificate|false a resource identifier on success or false on failure.
*/
function openssl_x509_read($certificate)
{
}
/**
* @param string $certificate
* @param string $digest_algo [optional] hash method
@ -455,7 +422,6 @@ function openssl_pkcs12_export_to_file($certificate, $output_filename, $private_
*/
function openssl_pkcs12_read($pkcs12, array &$certificates, $passphrase) { }
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Generates a CSR
* @link https://php.net/manual/en/function.openssl-csr-new.php
@ -551,103 +517,6 @@ function openssl_pkcs12_read($pkcs12, array &$certificates, $passphrase) { }
*/
function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Generates a CSR
* @link https://php.net/manual/en/function.openssl-csr-new.php
* @param array $distinguished_names <p>
* The Distinguished Name to be used in the certificate.
* </p>
* @param resource &$private_key <p>
* <i>privkey</i> should be set to a private key that was
* previously generated by <b>openssl_pkey_new</b> (or
* otherwise obtained from the other openssl_pkey family of functions).
* The corresponding public portion of the key will be used to sign the
* CSR.
* </p>
* @param array $options [optional] <p>
* By default, the information in your system openssl.conf
* is used to initialize the request; you can specify a configuration file
* section by setting the config_section_section key of
* <i>configargs</i>. You can also specify an alternative
* openssl configuration file by setting the value of the
* config key to the path of the file you want to use.
* The following keys, if present in <i>configargs</i>
* behave as their equivalents in the openssl.conf, as
* listed in the table below.
* <table>
* Configuration overrides
* <tr valign="top">
* <td><i>configargs</i> key</td>
* <td>type</td>
* <td>openssl.conf equivalent</td>
* <td>description</td>
* </tr>
* <tr valign="top">
* <td>digest_alg</td>
* <td>string</td>
* <td>default_md</td>
* <td>Selects which digest method to use</td>
* </tr>
* <tr valign="top">
* <td>x509_extensions</td>
* <td>string</td>
* <td>x509_extensions</td>
* <td>Selects which extensions should be used when creating an x509
* certificate</td>
* </tr>
* <tr valign="top">
* <td>req_extensions</td>
* <td>string</td>
* <td>req_extensions</td>
* <td>Selects which extensions should be used when creating a CSR</td>
* </tr>
* <tr valign="top">
* <td>private_key_bits</td>
* <td>integer</td>
* <td>default_bits</td>
* <td>Specifies how many bits should be used to generate a private
* key</td>
* </tr>
* <tr valign="top">
* <td>private_key_type</td>
* <td>integer</td>
* <td>none</td>
* <td>Specifies the type of private key to create. This can be one
* of <b>OPENSSL_KEYTYPE_DSA</b>,
* <b>OPENSSL_KEYTYPE_DH</b> or
* <b>OPENSSL_KEYTYPE_RSA</b>.
* The default value is <b>OPENSSL_KEYTYPE_RSA</b> which
* is currently the only supported key type.
* </td>
* </tr>
* <tr valign="top">
* <td>encrypt_key</td>
* <td>boolean</td>
* <td>encrypt_key</td>
* <td>Should an exported key (with passphrase) be encrypted?</td>
* </tr>
* <tr valign="top">
* <td>encrypt_key_cipher</td>
* <td>integer</td>
* <td>none</td>
* <td>
* One of cipher constants.
* </td>
* </tr>
* </table>
* </p>
* @param array $extra_attributes [optional] <p>
* <i>extraattribs</i> is used to specify additional
* configuration options for the CSR. Both <i>dn</i> and
* <i>extraattribs</i> are associative arrays whose keys are
* converted to OIDs and applied to the relevant part of the request.
* </p>
* @return false|OpenSSLCertificateSigningRequest the CSR.
*/
function openssl_csr_new(array $distinguished_names, &$private_key, array $options = null, array $extra_attributes = null) { }
/**
* Exports a CSR as a string
* @link https://php.net/manual/en/function.openssl-csr-export.php
@ -670,7 +539,6 @@ function openssl_csr_export($csr, &$output, $no_text = true) { }
*/
function openssl_csr_export_to_file($csr, $output_filename, $no_text = true) { }
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sign a CSR with another certificate (or itself) and generate a certificate
* @link https://php.net/manual/en/function.openssl-csr-sign.php
@ -706,42 +574,6 @@ function openssl_csr_export_to_file($csr, $output_filename, $no_text = true) { }
*/
function openssl_csr_sign($csr, $ca_certificate, $private_key, $days, array $options = null, $serial = 0) { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Sign a CSR with another certificate (or itself) and generate a certificate
* @link https://php.net/manual/en/function.openssl-csr-sign.php
* @param mixed $csr <p>
* A CSR previously generated by <b>openssl_csr_new</b>.
* It can also be the path to a PEM encoded CSR when specified as
* file://path/to/csr or an exported string generated
* by <b>openssl_csr_export</b>.
* </p>
* @param mixed $ca_certificate <p>
* The generated certificate will be signed by <i>cacert</i>.
* If <i>cacert</i> is null, the generated certificate
* will be a self-signed certificate.
* </p>
* @param mixed $private_key <p>
* <i>priv_key</i> is the private key that corresponds to
* <i>cacert</i>.
* </p>
* @param int $days <p>
* <i>days</i> specifies the length of time for which the
* generated certificate will be valid, in days.
* </p>
* @param array $options [optional] <p>
* You can finetune the CSR signing by <i>configargs</i>.
* See <b>openssl_csr_new</b> for more information about
* <i>configargs</i>.
* </p>
* @param int $serial [optional] <p>
* An optional the serial number of issued certificate. If not specified
* it will default to 0.
* </p>
* @return OpenSSLCertificate|false an x509 certificate resource on success, false on failure.
*/
function openssl_csr_sign($csr, $ca_certificate, $private_key, $days, array $options = null, $serial = 0) { }
/**
* Returns the subject of a CERT
* @link https://php.net/manual/en/function.openssl-csr-get-subject.php
@ -873,7 +705,6 @@ function openssl_sign($data, &$signature, $private_key, $algorithm = OPENSSL_ALG
*/
function openssl_verify($data, $signature, $public_key, $algorithm = OPENSSL_ALGO_SHA1) { }
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Seal (encrypt) data
* @link https://php.net/manual/en/function.openssl-seal.php
@ -890,26 +721,6 @@ function openssl_verify($data, $signature, $public_key, $algorithm = OPENSSL_ALG
*/
function openssl_seal($data, &$sealed_data, array &$encrypted_keys, array $public_key, $cipher_algo = null, &$iv = '') { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Seal (encrypt) data
* @link https://php.net/manual/en/function.openssl-seal.php
* @param string $data
* @param string &$sealed_data
* @param array &$encrypted_keys
* @param array $public_key
* @param string $cipher_algo
* @param string &$iv [optional]
* @return int|false the length of the sealed data on success, or false on error.
* If successful the sealed data is returned in
* <i>sealed_data</i>, and the envelope keys in
* <i>env_keys</i>.
*/
function openssl_seal($data, &$sealed_data, array &$encrypted_keys, array $public_key, $cipher_algo, &$iv = '')
{
}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Open sealed data
* @link https://php.net/manual/en/function.openssl-open.php
@ -926,26 +737,6 @@ function openssl_seal($data, &$sealed_data, array &$encrypted_keys, array $publi
*/
function openssl_open($data, &$output, $encrypted_key, $private_key, $cipher_algo = "RC4", string $iv) { }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Open sealed data
* @link https://php.net/manual/en/function.openssl-open.php
* @param string $data
* @param string &$output <p>
* If the call is successful the opened data is returned in this
* parameter.
* </p>
* @param string $encrypted_key
* @param mixed $private_key
* @param string $cipher_algo The cipher method.
* @param string $iv [optional] The initialization vector.
* @return bool true on success or false on failure.
*/
function openssl_open($data, &$output, $encrypted_key, $private_key, $cipher_algo, string $iv)
{
}
/**
* Generates a PKCS5 v2 PBKDF2 string, defaults to SHA-1
* @link https://secure.php.net/manual/en/function.openssl-pbkdf2.php

View File

@ -2,9 +2,7 @@
// Start of shmop v.
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create or open shared memory block
* @link https://php.net/manual/en/function.shmop-open.php
@ -25,34 +23,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* @param int $size <p>
* The size of the shared memory block you wish to create in bytes
* </p>
* @return false|Shmop On success <b>shmop_open</b> will return an id that you can
* use to access the shared memory segment you've created. <b>FALSE</b> is
* returned on failure.
*/
function shmop_open ($key, $mode, $permissions, $size) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create or open shared memory block
* @link https://php.net/manual/en/function.shmop-open.php
* @param int $key <p>
* System's id for the shared memory block.
* Can be passed as a decimal or hex.
* </p>
* @param int $mode <p>
* The flags that you can use:
* "a" for access (sets SHM_RDONLY for shmat)
* use this flag when you need to open an existing shared memory
* segment for read only
* @param int $permissions <p>
* The permissions that you wish to assign to your memory segment, those
* are the same as permission for a file. Permissions need to be passed
* in octal form, like for example 0644
* </p>
* @param int $size <p>
* The size of the shared memory block you wish to create in bytes
* </p>
* @return resource|false On success <b>shmop_open</b> will return an id that you can
* @return resource|false|Shmop On success <b>shmop_open</b> will return an id that you can
* use to access the shared memory segment you've created. <b>FALSE</b> is
* returned on failure.
*/

View File

@ -1,28 +1,7 @@
<?php
// Start of sockets v.
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Get array with contents of getaddrinfo about the given hostname.
* @link https://www.php.net/manual/en/function.socket-addrinfo-lookup.php
* @param string $host <p>
* Hostname to search.
* </p>
* @param string $service [optional] <p>
* The service to connect to. If service is a name, it is translated to the corresponding port number.
* </p>
* @param array $hints [optional] <p>
* Hints provide criteria for selecting addresses returned. You may specify the hints as defined by getadrinfo.
* </p>
* @return resource of AddrInfo resource handles that can be used with the other socket_addrinfo functions.
* @since 7.2
*/
function socket_addrinfo_lookup($host, $service, $hints) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Get array with contents of getaddrinfo about the given hostname.
@ -41,56 +20,27 @@ function socket_addrinfo_lookup($host, $service, $hints) {}
*/
function socket_addrinfo_lookup($host, $service, $hints) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a Socket resource, and connect it to the provided AddrInfo resource.<br/>
* The return value of this function may be used with the rest of the socket functions.
* @link https://www.php.net/manual/en/function.socket-addrinfo-connect.php
* @param AddressInfo $addr <p>
* @param resource|AddressInfo $addr <p>
* Resource created from {@see socket_addrinfo_lookup()}
* </p>
* @return Socket|null Socket resource on success or NULL on failure.
* @return resource|Socket|null Socket resource on success or NULL on failure.
* @since 7.2
*/
function socket_addrinfo_connect($addr) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a Socket resource, and connect it to the provided AddrInfo resource.<br/>
* The return value of this function may be used with the rest of the socket functions.
* @link https://www.php.net/manual/en/function.socket-addrinfo-connect.php
* @param resource $addr <p>
* Resource created from {@see socket_addrinfo_lookup()}
* </p>
* @return resource|null Socket resource on success or NULL on failure.
* @since 7.2
*/
function socket_addrinfo_connect($addr) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Create a Socket resource, and bind it to the provided AddrInfo resource.<br/>
* The return value of this function may be used with {@see socket_listen()}.
* @link https://www.php.net/manual/en/function.socket-addrinfo-bind.php
* @param AddressInfo $addr <p>
* @param resource|AddressInfo $addr <p>
* Resource created from {@see socket_addrinfo_lookup()}
* </p>
* @return Socket|null Socket resource on success or NULL on failure.
* @since 7.2
*/
function socket_addrinfo_bind($addr) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* (PHP 7 &gt;= 7.2.0)<br/>
* Create a Socket resource, and bind it to the provided AddrInfo resource.<br/>
* The return value of this function may be used with {@see socket_listen()}.
* @link https://www.php.net/manual/en/function.socket-addrinfo-bind.php
* @param resource $addr <p>
* Resource created from {@see socket_addrinfo_lookup()}
* </p>
* @return resource|null Socket resource on success or NULL on failure.
* @return resource|Socket|null Socket resource on success or NULL on failure.
* @since 7.2
*/
function socket_addrinfo_bind($addr) {}
@ -157,7 +107,6 @@ function socket_addrinfo_explain($addr) {}
*/
function socket_select (array &$read, array &$write, array &$except, $tv_sec, $tv_usec = 0) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create a socket (endpoint for communication)
* @link https://php.net/manual/en/function.socket-create.php
@ -288,7 +237,7 @@ function socket_select (array &$read, array &$write, array &$except, $tv_sec, $t
* </td>
* </tr>
* </table>
* @return Socket|false <b>socket_create</b> returns a socket resource on success,
* @return resource|Socket|false <b>socket_create</b> returns a socket resource on success,
* or <b>FALSE</b> on error. The actual error code can be retrieved by calling
* <b>socket_last_error</b>. This error code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
@ -296,156 +245,9 @@ function socket_select (array &$read, array &$write, array &$except, $tv_sec, $t
*/
function socket_create ($domain, $type, $protocol) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create a socket (endpoint for communication)
* @link https://php.net/manual/en/function.socket-create.php
* @param int $domain <p>
* The <i>domain</i> parameter specifies the protocol
* family to be used by the socket.
* </p>
* <table>
* Available address/protocol families
* <tr valign="top">
* <td>Domain</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td><b>AF_INET</b></td>
* <td>
* IPv4 Internet based protocols. TCP and UDP are common protocols of
* this protocol family.
* </td>
* </tr>
* <tr valign="top">
* <td><b>AF_INET6</b></td>
* <td>
* IPv6 Internet based protocols. TCP and UDP are common protocols of
* this protocol family.
* </td>
* </tr>
* <tr valign="top">
* <td><b>AF_UNIX</b></td>
* <td>
* Local communication protocol family. High efficiency and low
* overhead make it a great form of IPC (Interprocess Communication).
* </td>
* </tr>
* </table>
* @param int $type <p>
* The <i>type</i> parameter selects the type of communication
* to be used by the socket.
* </p>
* <table>
* Available socket types
* <tr valign="top">
* <td>Type</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td><b>SOCK_STREAM</b></td>
* <td>
* Provides sequenced, reliable, full-duplex, connection-based byte streams.
* An out-of-band data transmission mechanism may be supported.
* The TCP protocol is based on this socket type.
* </td>
* </tr>
* <tr valign="top">
* <td><b>SOCK_DGRAM</b></td>
* <td>
* Supports datagrams (connectionless, unreliable messages of a fixed maximum length).
* The UDP protocol is based on this socket type.
* </td>
* </tr>
* <tr valign="top">
* <td><b>SOCK_SEQPACKET</b></td>
* <td>
* Provides a sequenced, reliable, two-way connection-based data transmission path for
* datagrams of fixed maximum length; a consumer is required to read an
* entire packet with each read call.
* </td>
* </tr>
* <tr valign="top">
* <td><b>SOCK_RAW</b></td>
* <td>
* Provides raw network protocol access. This special type of socket
* can be used to manually construct any type of protocol. A common use
* for this socket type is to perform ICMP requests (like ping).
* </td>
* </tr>
* <tr valign="top">
* <td><b>SOCK_RDM</b></td>
* <td>
* Provides a reliable datagram layer that does not guarantee ordering.
* This is most likely not implemented on your operating system.
* </td>
* </tr>
* </table>
* @param int $protocol <p>
* The <i>protocol</i> parameter sets the specific
* protocol within the specified <i>domain</i> to be used
* when communicating on the returned socket. The proper value can be
* retrieved by name by using <b>getprotobyname</b>. If
* the desired protocol is TCP, or UDP the corresponding constants
* <b>SOL_TCP</b>, and <b>SOL_UDP</b>
* can also be used.
* </p>
* <table>
* Common protocols
* <tr valign="top">
* <td>Name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>icmp</td>
* <td>
* The Internet Control Message Protocol is used primarily by gateways
* and hosts to report errors in datagram communication. The "ping"
* command (present in most modern operating systems) is an example
* application of ICMP.
* </td>
* </tr>
* <tr valign="top">
* <td>udp</td>
* <td>
* The User Datagram Protocol is a connectionless, unreliable,
* protocol with fixed record lengths. Due to these aspects, UDP
* requires a minimum amount of protocol overhead.
* </td>
* </tr>
* <tr valign="top">
* <td>tcp</td>
* <td>
* The Transmission Control Protocol is a reliable, connection based,
* stream oriented, full duplex protocol. TCP guarantees that all data packets
* will be received in the order in which they were sent. If any packet is somehow
* lost during communication, TCP will automatically retransmit the packet until
* the destination host acknowledges that packet. For reliability and performance
* reasons, the TCP implementation itself decides the appropriate octet boundaries
* of the underlying datagram communication layer. Therefore, TCP applications must
* allow for the possibility of partial record transmission.
* </td>
* </tr>
* </table>
* @return resource|false <b>socket_create</b> returns a socket resource on success,
* or <b>FALSE</b> on error. The actual error code can be retrieved by calling
* <b>socket_last_error</b>. This error code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
* error.
*/
function socket_create ($domain, $type, $protocol) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* @param Socket $socket
* @return Socket|false
*/
function socket_export_stream($socket) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* @param resource $socket
* @return resource|false
* @param resource|Socket $socket
* @return resource|Socket|false
*/
function socket_export_stream($socket) {}
@ -503,14 +305,13 @@ function socket_create_listen ($port, $backlog = 128) {}
*/
function socket_create_pair ($domain, $type, $protocol, array &$fd) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Accepts a connection on a socket
* @link https://php.net/manual/en/function.socket-accept.php
* @param Socket $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>.
* </p>
* @return Socket|false a new socket resource on success, or <b>FALSE</b> on error. The actual
* @return resource|Socket|false a new socket resource on success, or <b>FALSE</b> on error. The actual
* error code can be retrieved by calling
* <b>socket_last_error</b>. This error code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
@ -518,27 +319,10 @@ function socket_create_pair ($domain, $type, $protocol, array &$fd) {}
*/
function socket_accept ($socket) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Accepts a connection on a socket
* @link https://php.net/manual/en/function.socket-accept.php
* @param resource $socket <p>
* A valid socket resource created with <b>socket_create</b>.
* </p>
* @return resource|false a new socket resource on success, or <b>FALSE</b> on error. The actual
* error code can be retrieved by calling
* <b>socket_last_error</b>. This error code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
* error.
*/
function socket_accept ($socket) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Sets nonblocking mode for file descriptor fd
* @link https://php.net/manual/en/function.socket-set-nonblock.php
* @param Socket $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
@ -546,23 +330,10 @@ function socket_accept ($socket) {}
*/
function socket_set_nonblock ($socket) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sets nonblocking mode for file descriptor fd
* @link https://php.net/manual/en/function.socket-set-nonblock.php
* @param resource $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function socket_set_nonblock ($socket) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Sets blocking mode on a socket resource
* @link https://php.net/manual/en/function.socket-set-block.php
* @param Socket $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
@ -570,23 +341,10 @@ function socket_set_nonblock ($socket) {}
*/
function socket_set_block ($socket) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Sets blocking mode on a socket resource
* @link https://php.net/manual/en/function.socket-set-block.php
* @param resource $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function socket_set_block ($socket) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Listens for a connection on a socket
* @link https://php.net/manual/en/function.socket-listen.php
* @param Socket $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>.
* </p>
* @param int $backlog [optional] <p>
@ -612,41 +370,10 @@ function socket_set_block ($socket) {}
*/
function socket_listen ($socket, $backlog = 0) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Listens for a connection on a socket
* @link https://php.net/manual/en/function.socket-listen.php
* @param resource $socket <p>
* A valid socket resource created with <b>socket_create</b>.
* </p>
* @param int $backlog [optional] <p>
* A maximum of <i>backlog</i> incoming connections will be
* queued for processing. If a connection request arrives with the queue
* full the client may receive an error with an indication of
* ECONNREFUSED, or, if the underlying protocol supports
* retransmission, the request may be ignored so that retries may succeed.
* </p>
* <p>
* The maximum number passed to the <i>backlog</i>
* parameter highly depends on the underlying platform. On Linux, it is
* silently truncated to <b>SOMAXCONN</b>. On win32, if
* passed <b>SOMAXCONN</b>, the underlying service provider
* responsible for the socket will set the backlog to a maximum
* reasonable value. There is no standard provision to
* find out the actual backlog value on this platform.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure. The error code can be retrieved with
* <b>socket_last_error</b>. This code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
* error.
*/
function socket_listen ($socket, $backlog = 0) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Closes a socket resource
* @link https://php.net/manual/en/function.socket-close.php
* @param Socket $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
@ -654,23 +381,10 @@ function socket_listen ($socket, $backlog = 0) {}
*/
function socket_close ($socket) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Closes a socket resource
* @link https://php.net/manual/en/function.socket-close.php
* @param resource $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
* @return void No value is returned.
*/
function socket_close ($socket) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Write to a socket
* @link https://php.net/manual/en/function.socket-write.php
* @param Socket $socket
* @param resource|Socket $socket
* @param string $buffer <p>
* The buffer to be written.
* </p>
@ -694,71 +408,10 @@ function socket_close ($socket) {}
*/
function socket_write ($socket, $buffer, $length = 0) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Write to a socket
* @link https://php.net/manual/en/function.socket-write.php
* @param resource $socket
* @param string $buffer <p>
* The buffer to be written.
* </p>
* @param int $length [optional] <p>
* The optional parameter <i>length</i> can specify an
* alternate length of bytes written to the socket. If this length is
* greater than the buffer length, it is silently truncated to the length
* of the buffer.
* </p>
* @return int|false the number of bytes successfully written to the socket or <b>FALSE</b> on failure.
* The error code can be retrieved with
* <b>socket_last_error</b>. This code may be passed to
* <b>socket_strerror</b> to get a textual explanation of the
* error.
* </p>
* <p>
* It is perfectly valid for <b>socket_write</b> to
* return zero which means no bytes have been written. Be sure to use the
* === operator to check for <b>FALSE</b> in case of an
* error.
*/
function socket_write ($socket, $buffer, $length = 0) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Reads a maximum of length bytes from a socket
* @link https://php.net/manual/en/function.socket-read.php
* @param Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
* @param int $length <p>
* The maximum number of bytes read is specified by the
* <i>length</i> parameter. Otherwise you can use
* <b>&#92;r</b>, <b>&#92;n</b>,
* or <b>&#92;0</b> to end reading (depending on the <i>type</i>
* parameter, see below).
* </p>
* @param int $type [optional] <p>
* Optional <i>type</i> parameter is a named constant:
* <b>PHP_BINARY_READ</b> (Default) - use the system
* recv() function. Safe for reading binary data.
* @return string|false <b>socket_read</b> returns the data as a string on success,
* or <b>FALSE</b> on error (including if the remote host has closed the
* connection). The error code can be retrieved with
* <b>socket_last_error</b>. This code may be passed to
* <b>socket_strerror</b> to get a textual representation of
* the error.
* </p>
* <p>
* <b>socket_read</b> returns a zero length string ("")
* when there is no more data to read.
*/
function socket_read ($socket, $length, $type = PHP_BINARY_READ) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Reads a maximum of length bytes from a socket
* @link https://php.net/manual/en/function.socket-read.php
* @param resource $socket <p>
* @param resource|Socket $socket <p>
* A valid socket resource created with <b>socket_create</b>
* or <b>socket_accept</b>.
* </p>
@ -1641,26 +1294,13 @@ function socket_last_error ($socket = null) {}
*/
function socket_clear_error ($socket = null) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Import a stream
* @link https://php.net/manual/en/function.socket-import-stream.php
* @param resource|Socket $stream <p>
* The stream resource to import.
* </p>
* @return Socket|false|null <b>FALSE</b> or <b>NULL</b> on failure.
* @since 5.4
*/
function socket_import_stream ($stream) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Import a stream
* @link https://php.net/manual/en/function.socket-import-stream.php
* @param resource|Socket $stream <p>
* The stream resource to import.
* </p>
* @return resource|false|null <b>FALSE</b> or <b>NULL</b> on failure.
* @return resource|Socket|false|null <b>FALSE</b> or <b>NULL</b> on failure.
* @since 5.4
*/
function socket_import_stream ($stream) {}
@ -1706,28 +1346,13 @@ function socket_setopt ($socket, $level, $optname, $optval) {}
*/
function socket_wsaprotocol_info_export($socket, $target_pid) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Imports a Socket from another Process
*
* @link https://www.php.net/manual/en/function.socket-wsaprotocol-info-import.php
*
* @param string $info_id
* @return Socket|false
*
* @since 7.3
*/
function socket_wsaprotocol_info_import($info_id) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Imports a Socket from another Process
*
* @link https://www.php.net/manual/en/function.socket-wsaprotocol-info-import.php
*
* @param string $info_id
* @return resource|false
* @return resource|Socket|false
*
* @since 7.3
*/

View File

@ -1,7 +1,7 @@
<?php
use \JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable('8.0')]
// Start of sysvmsg v.
/**
* Create or attach to a message queue
* @link https://php.net/manual/en/function.msg-get-queue.php
@ -12,22 +12,7 @@ use \JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* Queue permissions. Default to 0666. If the message queue already
* exists, the <i>perms</i> will be ignored.
* </p>
* @return SysvMessageQueue a resource handle that can be used to access the System V message queue.
*/
function msg_get_queue ($key, $permissions = 0666) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create or attach to a message queue
* @link https://php.net/manual/en/function.msg-get-queue.php
* @param int $key <p>
* Message queue numeric ID
* </p>
* @param int $permissions [optional] <p>
* Queue permissions. Default to 0666. If the message queue already
* exists, the <i>perms</i> will be ignored.
* </p>
* @return resource a resource handle that can be used to access the System V message queue.
* @return resource|SysvMessageQueue a resource handle that can be used to access the System V message queue.
*/
function msg_get_queue ($key, $permissions = 0666) {}

View File

@ -1,9 +1,7 @@
<?php
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
// Start of sysvsem v.
#[PhpStormStubsElementAvailable('8.0')]
/**
* Get a semaphore id
* @link https://php.net/manual/en/function.sem-get.php
@ -21,30 +19,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* Specifies if the semaphore should be automatically released on request
* shutdown.
* </p>
* @return false|SysvSemaphore a positive semaphore identifier on success, or <b>FALSE</b> on
* error.
*/
function sem_get ($key, $max_acquire = 1, $permissions = 0666, $auto_release = 1) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Get a semaphore id
* @link https://php.net/manual/en/function.sem-get.php
* @param int $key
* @param int $max_acquire [optional] <p>
* The number of processes that can acquire the semaphore simultaneously
* is set to <i>max_acquire</i>.
* </p>
* @param int $permissions [optional] <p>
* The semaphore permissions. Actually this value is
* set only if the process finds it is the only process currently
* attached to the semaphore.
* </p>
* @param int $auto_release [optional] <p>
* Specifies if the semaphore should be automatically released on request
* shutdown.
* </p>
* @return resource|false a positive semaphore identifier on success, or <b>FALSE</b> on
* @return resource|false|SysvSemaphore a positive semaphore identifier on success, or <b>FALSE</b> on
* error.
*/
function sem_get ($key, $max_acquire = 1, $permissions = 0666, $auto_release = 1) {}

View File

@ -1,9 +1,7 @@
<?php
// Start of sysvshm v.
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
#[PhpStormStubsElementAvailable('8.0')]
/**
* Creates or open a shared memory segment
* @link https://php.net/manual/en/function.shm-attach.php
@ -18,26 +16,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* @param int $permissions [optional] <p>
* The optional permission bits. Default to 0666.
* </p>
* @return SysvSharedMemory a shared memory segment identifier.
*/
function shm_attach ($key, $size = null, $permissions = 0666) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Creates or open a shared memory segment
* @link https://php.net/manual/en/function.shm-attach.php
* @param int $key <p>
* A numeric shared memory segment ID
* </p>
* @param int $size [optional] <p>
* The memory size. If not provided, default to the
* sysvshm.init_mem in the <i>php.ini</i>, otherwise 10000
* bytes.
* </p>
* @param int $permissions [optional] <p>
* The optional permission bits. Default to 0666.
* </p>
* @return resource a shared memory segment identifier.
* @return resource|SysvSharedMemory a shared memory segment identifier.
*/
function shm_attach ($key, $size = null, $permissions = 0666) {}

View File

@ -1,10 +1,8 @@
<?php
// Start of xml v.
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
#[PhpStormStubsElementAvailable('8.0')]
/**
* Create an XML parser
* @link https://php.net/manual/en/function.xml-parser-create.php
@ -21,29 +19,7 @@ use JetBrains\PhpStorm\Pure;
* encodings are ISO-8859-1, UTF-8 and
* US-ASCII.
* </p>
* @return false|XmlParser a resource handle for the new XML parser.
*/
#[Pure]
function xml_parser_create ($encoding = null) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Create an XML parser
* @link https://php.net/manual/en/function.xml-parser-create.php
* @param string $encoding [optional] <p>
* The optional <i>encoding</i> specifies the character
* encoding for the input/output in PHP 4. Starting from PHP 5, the input
* encoding is automatically detected, so that the
* <i>encoding</i> parameter specifies only the output
* encoding. In PHP 4, the default output encoding is the same as the
* input charset. If empty string is passed, the parser attempts to identify
* which encoding the document is encoded in by looking at the heading 3 or
* 4 bytes. In PHP 5.0.0 and 5.0.1, the default output charset is
* ISO-8859-1, while in PHP 5.0.2 and upper is UTF-8. The supported
* encodings are ISO-8859-1, UTF-8 and
* US-ASCII.
* </p>
* @return resource|false a resource handle for the new XML parser.
* @return resource|false|XmlParser a resource handle for the new XML parser.
*/
#[Pure]
function xml_parser_create ($encoding = null) {}

View File

@ -2,7 +2,6 @@
// Start of zlib v.2.0
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -408,7 +407,6 @@ function zlib_get_coding_type () {}
*/
function ob_gzhandler ($data, $flags) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Initialize an incremental deflate context
* @link https://php.net/manual/en/function.deflate-init.php
@ -424,32 +422,7 @@ function ob_gzhandler ($data, $flags) {}
* <b>ZLIB_RLE</b>, <b>ZLIB_FIXED</b> or <b>ZLIB_DEFAULT_STRATEGY</b> (the
* default). <b>dictionary</b>A string or an array of strings of the preset
* dictionary (default: no preset dictionary).</p>
* @return false|DeflateContext <p>
* Returns a deflate context resource (zlib.deflate) on success, or
* <b>FALSE</b> on failure.
* </p>
* @since 7.0
*/
#[Pure]
function deflate_init ($encoding, $options = array()) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize an incremental deflate context
* @link https://php.net/manual/en/function.deflate-init.php
* @param int $encoding <p>
* One of the <b>ZLIB_ENCODING_*</b> constants.
* </p>
* @param array $options <p>
* An associative array which may contain the following elements:
* <b>level</b>The compression level in range -1..9; defaults to -1.
* <b>memory</b>The compression memory level in range 1..9; defaults to 8.
* <b>window</b>The zlib window size (logarithmic) in range 8..15; defaults
* to 15. <b>strategy</b>One of <b>ZLIB_FILTERED</b>, <b>ZLIB_HUFFMAN_ONLY</b>,
* <b>ZLIB_RLE</b>, <b>ZLIB_FIXED</b> or <b>ZLIB_DEFAULT_STRATEGY</b> (the
* default). <b>dictionary</b>A string or an array of strings of the preset
* dictionary (default: no preset dictionary).</p>
* @return resource|false <p>
* @return resource|false|DeflateContext <p>
* Returns a deflate context resource (zlib.deflate) on success, or
* <b>FALSE</b> on failure.
* </p>
@ -481,7 +454,6 @@ function deflate_init ($encoding, $options = array()) {}
*/
function deflate_add ($context, $data, $flush_mode = ZLIB_SYNC_FLUSH) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Initialize an incremental inflate context
* @link https://php.net/manual/en/function.inflate-init.php
@ -497,32 +469,7 @@ function deflate_add ($context, $data, $flush_mode = ZLIB_SYNC_FLUSH) {}
* <b>ZLIB_RLE</b>, <b>ZLIB_FIXED</b> or <b>ZLIB_DEFAULT_STRATEGY</b> (the
* default). <b>dictionary</b>A string or an array of strings of the preset
* dictionary (default: no preset dictionary).</p>
* @return false|InflateContext <p>
* Returns an inflate context resource (zlib.inflate) on success, or
* <b>FALSE</b> on failure.
* </p>
* @since 7.0
*/
#[Pure]
function inflate_init ($encoding, $options = array()) {}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Initialize an incremental inflate context
* @link https://php.net/manual/en/function.inflate-init.php
* @param int $encoding <p>
* One of the ZLIB_ENCODING_* constants.
* </p>
* @param array $options [optional] <p>
* An associative array which may contain the following elements:
* <b>level</b>The compression level in range -1..9; defaults to -1.
* <b>memory</b>The compression memory level in range 1..9; defaults to 8.
* <b>window</b>The zlib window size (logarithmic) in range 8..15; defaults
* to 15. <b>strategy</b>One of <b>ZLIB_FILTERED</b>, <b>ZLIB_HUFFMAN_ONLY</b>,
* <b>ZLIB_RLE</b>, <b>ZLIB_FIXED</b> or <b>ZLIB_DEFAULT_STRATEGY</b> (the
* default). <b>dictionary</b>A string or an array of strings of the preset
* dictionary (default: no preset dictionary).</p>
* @return resource|false <p>
* @return resource|false|InflateContext <p>
* Returns an inflate context resource (zlib.inflate) on success, or
* <b>FALSE</b> on failure.
* </p>