diff --git a/generated/Exceptions/IngresiiException.php b/generated/Exceptions/DomException.php similarity index 73% rename from generated/Exceptions/IngresiiException.php rename to generated/Exceptions/DomException.php index ca40822e..401173cb 100644 --- a/generated/Exceptions/IngresiiException.php +++ b/generated/Exceptions/DomException.php @@ -1,7 +1,7 @@ * + * @param string $text Text to be inserted into image. + * @param array $options + * Possible array indexes for options * - * Constant + * + * + * Key + * Type * Meaning * * * * - * IMG_FLIP_HORIZONTAL + * linespacing + * float + * Defines drawing linespacing * - * Flips the image horizontally. * * * - * IMG_FLIP_VERTICAL + * @return array This function returns an array defining the four points of the box, starting in the lower left and moving counter-clockwise: * - * Flips the image vertically. * * * - * IMG_FLIP_BOTH + * 0 + * lower left x-coordinate * - * Flips the image both horizontally and vertically. * + * 1 + * lower left y-coordinate + * + * + * 2 + * lower right x-coordinate * * + * 3 + * lower right y-coordinate + * + * + * 4 + * upper right x-coordinate * * + * 5 + * upper right y-coordinate + * + * + * 6 + * upper left x-coordinate + * + * + * 7 + * upper left y-coordinate + * + * + * + * + * + * On failure, FALSE is returned. * @throws ImageException * */ -function imageflip($image, int $mode): void +function imagefttext( $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array { error_clear_last(); - $result = \imageflip($image, $mode); + $result = \imagefttext($image, $size, $angle, $x, $y, $color, $font_filename, $text, $options); if ($result === false) { throw ImageException::createFromPhpError(); } + return $result; } @@ -1446,17 +1651,17 @@ function imageflip($image, int $mode): void * Applies gamma correction to the given gd image * given an input and an output gamma. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param float $inputgamma The input gamma. - * @param float $outputgamma The output gamma. + * @param float $input_gamma The input gamma. + * @param float $output_gamma The output gamma. * @throws ImageException * */ -function imagegammacorrect($image, float $inputgamma, float $outputgamma): void +function imagegammacorrect( $image, float $input_gamma, float $output_gamma): void { error_clear_last(); - $result = \imagegammacorrect($image, $inputgamma, $outputgamma); + $result = \imagegammacorrect($image, $input_gamma, $output_gamma); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1464,18 +1669,22 @@ function imagegammacorrect($image, float $inputgamma, float $outputgamma): void /** - * Outputs a GD image to the given to. + * Outputs a GD image to the given file. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * @throws ImageException * */ -function imagegd($image, $to = null): void +function imagegd( $image, $file = null): void { error_clear_last(); - $result = \imagegd($image, $to); + if ($file !== null) { + $result = \imagegd($image, $file); + }else { + $result = \imagegd($image); + } if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1483,22 +1692,30 @@ function imagegd($image, $to = null): void /** - * Outputs a GD2 image to the given to. + * Outputs a GD2 image to the given file. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * @param int $chunk_size Chunk size. - * @param int $type Either IMG_GD2_RAW or + * @param int $mode Either IMG_GD2_RAW or * IMG_GD2_COMPRESSED. Default is * IMG_GD2_RAW. * @throws ImageException * */ -function imagegd2($image, $to = null, int $chunk_size = 128, int $type = IMG_GD2_RAW): void +function imagegd2( $image, $file = null, int $chunk_size = 128, int $mode = IMG_GD2_RAW): void { error_clear_last(); - $result = \imagegd2($image, $to, $chunk_size, $type); + if ($mode !== IMG_GD2_RAW) { + $result = \imagegd2($image, $file, $chunk_size, $mode); + } elseif ($chunk_size !== 128) { + $result = \imagegd2($image, $file, $chunk_size); + } elseif ($file !== null) { + $result = \imagegd2($image, $file); + }else { + $result = \imagegd2($image); + } if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1507,7 +1724,7 @@ function imagegd2($image, $to = null, int $chunk_size = 128, int $type = IMG_GD2 /** * imagegif creates the GIF - * file in to from the image image. The + * file in file from the image image. The * image argument is the return from the * imagecreate or imagecreatefrom* * function. @@ -1517,18 +1734,18 @@ function imagegd2($image, $to = null, int $chunk_size = 128, int $type = IMG_GD2 * imagecolortransparent, in which case the * image format will be GIF89a. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * @throws ImageException * */ -function imagegif($image, $to = null): void +function imagegif( $image, $file = null): void { error_clear_last(); - if ($to !== null) { - $result = \imagegif($image, $to); - } else { + if ($file !== null) { + $result = \imagegif($image, $file); + }else { $result = \imagegif($image); } if ($result === false) { @@ -1540,7 +1757,7 @@ function imagegif($image, $to = null): void /** * Grabs a screenshot of the whole screen. * - * @return resource Returns an image resource identifier on success, FALSE on failure. + * @return resource Returns an image object on success, FALSE on failure. * @throws ImageException * */ @@ -1558,16 +1775,16 @@ function imagegrabscreen() /** * Grabs a window or its client area using a windows handle (HWND property in COM instance) * - * @param int $window_handle The HWND window ID. + * @param int $handle The HWND window ID. * @param int $client_area Include the client area of the application window. - * @return resource Returns an image resource identifier on success, FALSE on failure. + * @return resource Returns an image object on success, FALSE on failure. * @throws ImageException * */ -function imagegrabwindow(int $window_handle, int $client_area = 0) +function imagegrabwindow(int $handle, int $client_area = false) { error_clear_last(); - $result = \imagegrabwindow($window_handle, $client_area); + $result = \imagegrabwindow($handle, $client_area); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1579,23 +1796,23 @@ function imagegrabwindow(int $window_handle, int $client_area = 0) * imagejpeg creates a JPEG file from * the given image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * @param int $quality quality is optional, and ranges from 0 (worst * quality, smaller file) to 100 (best quality, biggest file). The * default (-1) uses the default IJG quality value (about 75). * @throws ImageException * */ -function imagejpeg($image, $to = null, int $quality = -1): void +function imagejpeg( $image, $file = null, int $quality = -1): void { error_clear_last(); if ($quality !== -1) { - $result = \imagejpeg($image, $to, $quality); - } elseif ($to !== null) { - $result = \imagejpeg($image, $to); - } else { + $result = \imagejpeg($image, $file, $quality); + } elseif ($file !== null) { + $result = \imagejpeg($image, $file); + }else { $result = \imagejpeg($image); } if ($result === false) { @@ -1607,7 +1824,7 @@ function imagejpeg($image, $to = null, int $quality = -1): void /** * Set the alpha blending flag to use layering effects. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $effect One of the following constants: * @@ -1659,7 +1876,7 @@ function imagejpeg($image, $to = null, int $quality = -1): void * @throws ImageException * */ -function imagelayereffect($image, int $effect): void +function imagelayereffect( $image, int $effect): void { error_clear_last(); $result = \imagelayereffect($image, $effect); @@ -1672,7 +1889,7 @@ function imagelayereffect($image, int $effect): void /** * Draws a line between the two given points. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $x1 x-coordinate for first point. * @param int $y1 y-coordinate for first point. @@ -1682,7 +1899,7 @@ function imagelayereffect($image, int $effect): void * @throws ImageException * */ -function imageline($image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imageline( $image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imageline($image, $x1, $y1, $x2, $y2, $color); @@ -1696,7 +1913,7 @@ function imageline($image, int $x1, int $y1, int $x2, int $y2, int $color): void * imageloadfont loads a user-defined bitmap and returns * its identifier. * - * @param string $file The font file format is currently binary and architecture + * @param string $filename The font file format is currently binary and architecture * dependent. This means you should generate the font files on the * same type of CPU as the machine you are running PHP on. * @@ -1749,10 +1966,10 @@ function imageline($image, int $x1, int $y1, int $x2, int $y2, int $color): void * @throws ImageException * */ -function imageloadfont(string $file): int +function imageloadfont(string $filename): int { error_clear_last(); - $result = \imageloadfont($file); + $result = \imageloadfont($filename); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1764,9 +1981,9 @@ function imageloadfont(string $file): int * Outputs or saves a PNG image from the given * image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * * NULL is invalid if the quality and * filters arguments are not used. @@ -1782,16 +1999,16 @@ function imageloadfont(string $file): int * @throws ImageException * */ -function imagepng($image, $to = null, int $quality = -1, int $filters = -1): void +function imagepng( $image, $file = null, int $quality = -1, int $filters = -1): void { error_clear_last(); if ($filters !== -1) { - $result = \imagepng($image, $to, $quality, $filters); + $result = \imagepng($image, $file, $quality, $filters); } elseif ($quality !== -1) { - $result = \imagepng($image, $to, $quality); - } elseif ($to !== null) { - $result = \imagepng($image, $to); - } else { + $result = \imagepng($image, $file, $quality); + } elseif ($file !== null) { + $result = \imagepng($image, $file); + }else { $result = \imagepng($image); } if ($result === false) { @@ -1804,7 +2021,7 @@ function imagepng($image, $to = null, int $quality = -1, int $filters = -1): voi * imagerectangle creates a rectangle starting at * the specified coordinates. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $x1 Upper left x coordinate. * @param int $y1 Upper left y coordinate @@ -1815,7 +2032,7 @@ function imagepng($image, $to = null, int $quality = -1, int $filters = -1): voi * @throws ImageException * */ -function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): void +function imagerectangle( $image, int $x1, int $y1, int $x2, int $y2, int $color): void { error_clear_last(); $result = \imagerectangle($image, $x1, $y1, $x2, $y2, $color); @@ -1825,6 +2042,48 @@ function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): } +/** + * imageresolution allows to set and get the resolution of + * an image in DPI (dots per inch). If the optional parameters are NULL, + * the current resolution is returned as an indexed array. If only + * resolution_x is not NULL, the horizontal and vertical resolution + * are set to this value. If none of the optional parameters are NULL, the horizontal + * and vertical resolution are set to these values, respectively. + * + * The resolution is only used as meta information when images are read from and + * written to formats supporting this kind of information (curently PNG and + * JPEG). It does not affect any drawing operations. The default resolution + * for new images is 96 DPI. + * + * @param resource $image A GdImage object, returned by one of the image creation functions, + * such as imagecreatetruecolor. + * @param int $resolution_x The horizontal resolution in DPI. + * @param int $resolution_y The vertical resolution in DPI. + * @return mixed When used as getter, + * it returns an indexed array of the horizontal and vertical resolution on + * success. + * When used as setter, it returns + * TRUE on success. + * @throws ImageException + * + */ +function imageresolution( $image, int $resolution_x = null, int $resolution_y = null) +{ + error_clear_last(); + if ($resolution_y !== null) { + $result = \imageresolution($image, $resolution_x, $resolution_y); + } elseif ($resolution_x !== null) { + $result = \imageresolution($image, $resolution_x); + }else { + $result = \imageresolution($image); + } + if ($result === false) { + throw ImageException::createFromPhpError(); + } + return $result; +} + + /** * Rotates the image image using the given * angle in degrees. @@ -1832,20 +2091,20 @@ function imagerectangle($image, int $x1, int $y1, int $x2, int $y2, int $color): * The center of rotation is the center of the image, and the rotated * image may have different dimensions than the original image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param float $angle Rotation angle, in degrees. The rotation angle is interpreted as the * number of degrees to rotate the image anticlockwise. - * @param int $bgd_color Specifies the color of the uncovered zone after the rotation - * @param int $dummy This parameter is unused. - * @return resource Returns an image resource for the rotated image. + * @param int $background_color Specifies the color of the uncovered zone after the rotation + * @param int $ignore_transparent This parameter is unused. + * @return resource Returns an image object for the rotated image. * @throws ImageException * */ -function imagerotate($image, float $angle, int $bgd_color, int $dummy = 0) +function imagerotate( $image, float $angle, int $background_color, int $ignore_transparent = false) { error_clear_last(); - $result = \imagerotate($image, $angle, $bgd_color, $dummy); + $result = \imagerotate($image, $angle, $background_color, $ignore_transparent); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1861,16 +2120,16 @@ function imagerotate($image, float $angle, int $bgd_color, int $dummy = 0) * Alphablending has to be disabled (imagealphablending($im, false)) * to retain the alpha-channel in the first place. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param bool $saveflag Whether to save the alpha channel or not. Defaults to FALSE. + * @param bool $enable Whether to save the alpha channel or not. Defaults to FALSE. * @throws ImageException * */ -function imagesavealpha($image, bool $saveflag): void +function imagesavealpha( $image, bool $enable): void { error_clear_last(); - $result = \imagesavealpha($image, $saveflag); + $result = \imagesavealpha($image, $enable); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1881,10 +2140,10 @@ function imagesavealpha($image, bool $saveflag): void * imagescale scales an image using the given * interpolation algorithm. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param int $new_width The width to scale the image to. - * @param int $new_height The height to scale the image to. If omitted or negative, the aspect + * @param int $width The width to scale the image to. + * @param int $height The height to scale the image to. If omitted or negative, the aspect * ratio will be preserved. * @param int $mode One of IMG_NEAREST_NEIGHBOUR, * IMG_BILINEAR_FIXED, @@ -1896,14 +2155,14 @@ function imagesavealpha($image, bool $saveflag): void * IMG_WEIGHTED4 is not yet supported. * * - * @return resource Return the scaled image resource on success. + * @return resource Return the scaled image object on success. * @throws ImageException * */ -function imagescale($image, int $new_width, int $new_height = -1, int $mode = IMG_BILINEAR_FIXED) +function imagescale( $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED) { error_clear_last(); - $result = \imagescale($image, $new_width, $new_height, $mode); + $result = \imagescale($image, $width, $height, $mode); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1918,13 +2177,13 @@ function imagescale($image, int $new_width, int $new_height = -1, int $mode = IM * colors IMG_COLOR_BRUSHED or * IMG_COLOR_STYLEDBRUSHED. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param resource $brush An image resource. + * @param resource $brush An image object. * @throws ImageException * */ -function imagesetbrush($image, $brush): void +function imagesetbrush( $image, $brush): void { error_clear_last(); $result = \imagesetbrush($image, $brush); @@ -1938,7 +2197,7 @@ function imagesetbrush($image, $brush): void * imagesetclip sets the current clipping rectangle, i.e. * the area beyond which no pixels will be drawn. * - * @param resource $im An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $x1 The x-coordinate of the upper left corner. * @param int $y1 The y-coordinate of the upper left corner. @@ -1947,10 +2206,10 @@ function imagesetbrush($image, $brush): void * @throws ImageException * */ -function imagesetclip($im, int $x1, int $y1, int $x2, int $y2): void +function imagesetclip( $image, int $x1, int $y1, int $x2, int $y2): void { error_clear_last(); - $result = \imagesetclip($im, $x1, $y1, $x2, $y2); + $result = \imagesetclip($image, $x1, $y1, $x2, $y2); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -1961,7 +2220,7 @@ function imagesetclip($im, int $x1, int $y1, int $x2, int $y2): void * Sets the interpolation method, setting an interpolation method affects the rendering * of various functions in GD, such as the imagerotate function. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $method The interpolation method, which can be one of the following: * @@ -2074,7 +2333,7 @@ function imagesetclip($im, int $x1, int $y1, int $x2, int $y2): void * @throws ImageException * */ -function imagesetinterpolation($image, int $method = IMG_BILINEAR_FIXED): void +function imagesetinterpolation( $image, int $method = IMG_BILINEAR_FIXED): void { error_clear_last(); $result = \imagesetinterpolation($image, $method); @@ -2088,7 +2347,7 @@ function imagesetinterpolation($image, int $method = IMG_BILINEAR_FIXED): void * imagesetpixel draws a pixel at the specified * coordinate. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $x x-coordinate. * @param int $y y-coordinate. @@ -2096,7 +2355,7 @@ function imagesetinterpolation($image, int $method = IMG_BILINEAR_FIXED): void * @throws ImageException * */ -function imagesetpixel($image, int $x, int $y, int $color): void +function imagesetpixel( $image, int $x, int $y, int $color): void { error_clear_last(); $result = \imagesetpixel($image, $x, $y, $color); @@ -2113,7 +2372,7 @@ function imagesetpixel($image, int $x, int $y, int $color): void * color IMG_COLOR_STYLED or lines of images with color * IMG_COLOR_STYLEDBRUSHED. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param array $style An array of pixel colors. You can use the * IMG_COLOR_TRANSPARENT constant to add a @@ -2122,7 +2381,7 @@ function imagesetpixel($image, int $x, int $y, int $color): void * @throws ImageException * */ -function imagesetstyle($image, array $style): void +function imagesetstyle( $image, array $style): void { error_clear_last(); $result = \imagesetstyle($image, $style); @@ -2137,13 +2396,13 @@ function imagesetstyle($image, array $style): void * drawn when drawing rectangles, polygons, arcs etc. to * thickness pixels. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $thickness Thickness, in pixels. * @throws ImageException * */ -function imagesetthickness($image, int $thickness): void +function imagesetthickness( $image, int $thickness): void { error_clear_last(); $result = \imagesetthickness($image, $thickness); @@ -2164,13 +2423,13 @@ function imagesetthickness($image, int $thickness): void * image with imagecolortransparent, a tile allows certain parts * of the underlying area to shine through can be created. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param resource $tile The image resource to be used as a tile. + * @param resource $tile The image object to be used as a tile. * @throws ImageException * */ -function imagesettile($image, $tile): void +function imagesettile( $image, $tile): void { error_clear_last(); $result = \imagesettile($image, $tile); @@ -2183,7 +2442,7 @@ function imagesettile($image, $tile): void /** * Draws a string at the given coordinates. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $font Can be 1, 2, 3, 4, 5 for built-in * fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your @@ -2195,7 +2454,7 @@ function imagesettile($image, $tile): void * @throws ImageException * */ -function imagestring($image, int $font, int $x, int $y, string $string, int $color): void +function imagestring( $image, int $font, int $x, int $y, string $string, int $color): void { error_clear_last(); $result = \imagestring($image, $font, $x, $y, $string, $color); @@ -2209,7 +2468,7 @@ function imagestring($image, int $font, int $x, int $y, string $string, int $col * Draws a string vertically at the given * coordinates. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param int $font Can be 1, 2, 3, 4, 5 for built-in * fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or any of your @@ -2221,7 +2480,7 @@ function imagestring($image, int $font, int $x, int $y, string $string, int $col * @throws ImageException * */ -function imagestringup($image, int $font, int $x, int $y, string $string, int $color): void +function imagestringup( $image, int $font, int $x, int $y, string $string, int $color): void { error_clear_last(); $result = \imagestringup($image, $font, $x, $y, $string, $color); @@ -2232,15 +2491,15 @@ function imagestringup($image, int $font, int $x, int $y, string $string, int $c /** - * Returns the width of the given image resource. + * Returns the width of the given image object. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @return int Return the width of the images. * @throws ImageException * */ -function imagesx($image): int +function imagesx( $image): int { error_clear_last(); $result = \imagesx($image); @@ -2252,15 +2511,15 @@ function imagesx($image): int /** - * Returns the height of the given image resource. + * Returns the height of the given image object. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @return int Return the height of the images. * @throws ImageException * */ -function imagesy($image): int +function imagesy( $image): int { error_clear_last(); $result = \imagesy($image); @@ -2281,19 +2540,19 @@ function imagesy($image): int * usually best to simply produce a truecolor output image instead, which * guarantees the highest output quality. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param bool $dither Indicates if the image should be dithered - if it is TRUE then * dithering will be used which will result in a more speckled image but * with better color approximation. - * @param int $ncolors Sets the maximum number of colors that should be retained in the palette. + * @param int $num_colors Sets the maximum number of colors that should be retained in the palette. * @throws ImageException * */ -function imagetruecolortopalette($image, bool $dither, int $ncolors): void +function imagetruecolortopalette( $image, bool $dither, int $num_colors): void { error_clear_last(); - $result = \imagetruecolortopalette($image, $dither, $ncolors); + $result = \imagetruecolortopalette($image, $dither, $num_colors); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -2305,8 +2564,8 @@ function imagetruecolortopalette($image, bool $dither, int $ncolors): void * for a TrueType text. * * @param float $size The font size in points. - * @param float $angle Angle in degrees in which text will be measured. - * @param string $fontfile The path to the TrueType font you wish to use. + * @param float $angle Angle in degrees in which string will be measured. + * @param string $font_filename The path to the TrueType font you wish to use. * * Depending on which version of the GD library PHP is using, when * fontfile does not begin with a leading @@ -2329,7 +2588,8 @@ function imagetruecolortopalette($image, bool $dither, int $ncolors): void * * Note that open_basedir does * not apply to fontfile. - * @param string $text The string to be measured. + * @param string $string The string to be measured. + * @param array $options * @return array imagettfbbox returns an array with 8 * elements representing four points making the bounding box of the * text on success and FALSE on error. @@ -2384,10 +2644,10 @@ function imagetruecolortopalette($image, bool $dither, int $ncolors): void * @throws ImageException * */ -function imagettfbbox(float $size, float $angle, string $fontfile, string $text): array +function imagettfbbox(float $size, float $angle, string $font_filename, string $string, array $options = []): array { error_clear_last(); - $result = \imagettfbbox($size, $angle, $fontfile, $text); + $result = \imagettfbbox($size, $angle, $font_filename, $string, $options); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -2399,7 +2659,7 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text) * Writes the given text into the image using TrueType * fonts. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param float $size The font size in points. * @param float $angle The angle in degrees, with 0 degrees being left-to-right reading text. @@ -2416,7 +2676,7 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text) * very bottom of the character. * @param int $color The color index. Using the negative of a color index has the effect of * turning off antialiasing. See imagecolorallocate. - * @param string $fontfile The path to the TrueType font you wish to use. + * @param string $font_filename The path to the TrueType font you wish to use. * * Depending on which version of the GD library PHP is using, when * fontfile does not begin with a leading @@ -2452,6 +2712,7 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text) * * If a character is used in the string which is not supported by the * font, a hollow rectangle will replace the character. + * @param array $options * @return array Returns an array with 8 elements representing four points making the * bounding box of the text. The order of the points is lower left, lower * right, upper right, upper left. The points are relative to the text @@ -2460,10 +2721,10 @@ function imagettfbbox(float $size, float $angle, string $fontfile, string $text) * @throws ImageException * */ -function imagettftext($image, float $size, float $angle, int $x, int $y, int $color, string $fontfile, string $text): array +function imagettftext( $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array { error_clear_last(); - $result = \imagettftext($image, $size, $angle, $x, $y, $color, $fontfile, $text); + $result = \imagettftext($image, $size, $angle, $x, $y, $color, $font_filename, $text, $options); if ($result === false) { throw ImageException::createFromPhpError(); } @@ -2475,23 +2736,23 @@ function imagettftext($image, float $size, float $angle, int $x, int $y, int $co * imagewbmp outputs or save a WBMP * version of the given image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. - * @param int $foreground You can set the foreground color with this parameter by setting an + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param int $foreground_color You can set the foreground color with this parameter by setting an * identifier obtained from imagecolorallocate. * The default foreground color is black. * @throws ImageException * */ -function imagewbmp($image, $to = null, int $foreground = null): void +function imagewbmp( $image, $file = null, int $foreground_color = null): void { error_clear_last(); - if ($foreground !== null) { - $result = \imagewbmp($image, $to, $foreground); - } elseif ($to !== null) { - $result = \imagewbmp($image, $to); - } else { + if ($foreground_color !== null) { + $result = \imagewbmp($image, $file, $foreground_color); + } elseif ($file !== null) { + $result = \imagewbmp($image, $file); + }else { $result = \imagewbmp($image); } if ($result === false) { @@ -2503,22 +2764,22 @@ function imagewbmp($image, $to = null, int $foreground = null): void /** * Outputs or saves a WebP version of the given image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. - * @param string|resource|null $to The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. + * @param string|resource|null $file The path or an open stream resource (which is automatically being closed after this function returns) to save the file to. If not set or NULL, the raw image stream will be outputted directly. * @param int $quality quality ranges from 0 (worst * quality, smaller file) to 100 (best quality, biggest file). * @throws ImageException * */ -function imagewebp($image, $to = null, int $quality = 80): void +function imagewebp( $image, $file = null, int $quality = -1): void { error_clear_last(); - if ($quality !== 80) { - $result = \imagewebp($image, $to, $quality); - } elseif ($to !== null) { - $result = \imagewebp($image, $to); - } else { + if ($quality !== -1) { + $result = \imagewebp($image, $file, $quality); + } elseif ($file !== null) { + $result = \imagewebp($image, $file); + }else { $result = \imagewebp($image); } if ($result === false) { @@ -2531,7 +2792,7 @@ function imagewebp($image, $to = null, int $quality = 80): void * Outputs or save an XBM version of the given * image. * - * @param resource $image An image resource, returned by one of the image creation functions, + * @param resource $image A GdImage object, returned by one of the image creation functions, * such as imagecreatetruecolor. * @param string|resource|null $filename The path to save the file to, given as string. If NULL, the raw image stream will be output directly. * @@ -2540,19 +2801,19 @@ function imagewebp($image, $to = null, int $quality = 80): void * alphanumeric characters of the current locale are substituted by * underscores. If filename is set to NULL, * image is used to build the C identifiers. - * @param int $foreground You can set the foreground color with this parameter by setting an + * @param int $foreground_color You can set the foreground color with this parameter by setting an * identifier obtained from imagecolorallocate. * The default foreground color is black. All other colors are treated as * background. * @throws ImageException * */ -function imagexbm($image, $filename, int $foreground = null): void +function imagexbm( $image, $filename, int $foreground_color = null): void { error_clear_last(); - if ($foreground !== null) { - $result = \imagexbm($image, $filename, $foreground); - } else { + if ($foreground_color !== null) { + $result = \imagexbm($image, $filename, $foreground_color); + }else { $result = \imagexbm($image, $filename); } if ($result === false) { @@ -2643,3 +2904,4 @@ function png2wbmp(string $pngname, string $wbmpname, int $dest_height, int $dest throw ImageException::createFromPhpError(); } } + diff --git a/generated/imap.php b/generated/imap.php index 35898be1..46064719 100644 --- a/generated/imap.php +++ b/generated/imap.php @@ -42,14 +42,14 @@ function imap_8bit(string $string): string * @throws ImapException * */ -function imap_append($imap, string $folder, string $message, string $options = null, string $internal_date = null): void +function imap_append( $imap, string $folder, string $message, string $options = null, string $internal_date = null): void { error_clear_last(); if ($internal_date !== null) { $result = \imap_append($imap, $folder, $message, $options, $internal_date); } elseif ($options !== null) { $result = \imap_append($imap, $folder, $message, $options); - } else { + }else { $result = \imap_append($imap, $folder, $message); } if ($result === false) { @@ -134,7 +134,7 @@ function imap_binary(string $string): string * @throws ImapException * */ -function imap_body($imap, int $message_num, int $flags = 0): string +function imap_body( $imap, int $message_num, int $flags = 0): string { error_clear_last(); $result = \imap_body($imap, $message_num, $flags); @@ -159,7 +159,7 @@ function imap_body($imap, int $message_num, int $flags = 0): string * @throws ImapException * */ -function imap_bodystruct($imap, int $message_num, string $section): \stdClass +function imap_bodystruct( $imap, int $message_num, string $section): \stdClass { error_clear_last(); $result = \imap_bodystruct($imap, $message_num, $section); @@ -209,7 +209,7 @@ function imap_bodystruct($imap, int $message_num, string $section): \stdClass * @throws ImapException * */ -function imap_check($imap): \stdClass +function imap_check( $imap): \stdClass { error_clear_last(); $result = \imap_check($imap); @@ -245,7 +245,7 @@ function imap_check($imap): \stdClass * @throws ImapException * */ -function imap_clearflag_full($imap, string $sequence, string $flag, int $options = 0): void +function imap_clearflag_full( $imap, string $sequence, string $flag, int $options = 0): void { error_clear_last(); $result = \imap_clearflag_full($imap, $sequence, $flag, $options); @@ -267,7 +267,7 @@ function imap_clearflag_full($imap, string $sequence, string $flag, int $options * @throws ImapException * */ -function imap_close($imap, int $flags = 0): void +function imap_close( $imap, int $flags = 0): void { error_clear_last(); $result = \imap_close($imap, $flags); @@ -288,7 +288,7 @@ function imap_close($imap, int $flags = 0): void * @throws ImapException * */ -function imap_createmailbox($imap, string $mailbox): void +function imap_createmailbox( $imap, string $mailbox): void { error_clear_last(); $result = \imap_createmailbox($imap, $mailbox); @@ -308,7 +308,7 @@ function imap_createmailbox($imap, string $mailbox): void * @throws ImapException * */ -function imap_deletemailbox($imap, string $mailbox): void +function imap_deletemailbox( $imap, string $mailbox): void { error_clear_last(); $result = \imap_deletemailbox($imap, $mailbox); @@ -425,7 +425,7 @@ function imap_deletemailbox($imap, string $mailbox): void * @throws ImapException * */ -function imap_fetch_overview($imap, string $sequence, int $flags = 0): array +function imap_fetch_overview( $imap, string $sequence, int $flags = 0): array { error_clear_last(); $result = \imap_fetch_overview($imap, $sequence, $flags); @@ -470,7 +470,7 @@ function imap_fetch_overview($imap, string $sequence, int $flags = 0): array * @throws ImapException * */ -function imap_fetchbody($imap, int $message_num, string $section, int $flags = 0): string +function imap_fetchbody( $imap, int $message_num, string $section, int $flags = 0): string { error_clear_last(); $result = \imap_fetchbody($imap, $message_num, $section, $flags); @@ -492,7 +492,7 @@ function imap_fetchbody($imap, int $message_num, string $section, int $flags = 0 * * * - * FT_UID - The msgno + * FT_UID - The message_num * argument is a UID * * @@ -516,7 +516,7 @@ function imap_fetchbody($imap, int $message_num, string $section, int $flags = 0 * @throws ImapException * */ -function imap_fetchheader($imap, int $message_num, int $flags = 0): string +function imap_fetchheader( $imap, int $message_num, int $flags = 0): string { error_clear_last(); $result = \imap_fetchheader($imap, $message_num, $flags); @@ -560,7 +560,7 @@ function imap_fetchheader($imap, int $message_num, int $flags = 0): string * @throws ImapException * */ -function imap_fetchmime($imap, int $message_num, string $section, int $flags = 0): string +function imap_fetchmime( $imap, int $message_num, string $section, int $flags = 0): string { error_clear_last(); $result = \imap_fetchmime($imap, $message_num, $section, $flags); @@ -708,7 +708,7 @@ function imap_fetchmime($imap, int $message_num, string $section, int $flags = 0 * @throws ImapException * */ -function imap_fetchstructure($imap, int $message_num, int $flags = 0): \stdClass +function imap_fetchstructure( $imap, int $message_num, int $flags = 0): \stdClass { error_clear_last(); $result = \imap_fetchstructure($imap, $message_num, $flags); @@ -732,7 +732,7 @@ function imap_fetchstructure($imap, int $message_num, int $flags = 0): \stdClass * @throws ImapException * */ -function imap_gc($imap, int $flags): void +function imap_gc( $imap, int $flags): void { error_clear_last(); $result = \imap_gc($imap, $flags); @@ -753,7 +753,7 @@ function imap_gc($imap, int $flags): void * @throws ImapException * */ -function imap_getacl($imap, string $mailbox): array +function imap_getacl( $imap, string $mailbox): array { error_clear_last(); $result = \imap_getacl($imap, $mailbox); @@ -840,7 +840,7 @@ function imap_getacl($imap, string $mailbox): array * @throws ImapException * */ -function imap_getmailboxes($imap, string $reference, string $pattern): array +function imap_getmailboxes( $imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_getmailboxes($imap, $reference, $pattern); @@ -927,7 +927,7 @@ function imap_getmailboxes($imap, string $reference, string $pattern): array * @throws ImapException * */ -function imap_getsubscribed($imap, string $reference, string $pattern): array +function imap_getsubscribed( $imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_getsubscribed($imap, $reference, $pattern); @@ -1153,7 +1153,7 @@ function imap_getsubscribed($imap, string $reference, string $pattern): array * @throws ImapException * */ -function imap_headerinfo($imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass +function imap_headerinfo( $imap, int $message_num, int $from_length = 0, int $subject_length = 0): \stdClass { error_clear_last(); $result = \imap_headerinfo($imap, $message_num, $from_length, $subject_length); @@ -1175,7 +1175,7 @@ function imap_headerinfo($imap, int $message_num, int $from_length = 0, int $sub * @throws ImapException * */ -function imap_headers($imap): array +function imap_headers( $imap): array { error_clear_last(); $result = \imap_headers($imap); @@ -1218,7 +1218,7 @@ function imap_headers($imap): array * @throws ImapException * */ -function imap_listscan($imap, string $reference, string $pattern, string $content): array +function imap_listscan( $imap, string $reference, string $pattern, string $content): array { error_clear_last(); $result = \imap_listscan($imap, $reference, $pattern, $content); @@ -1254,7 +1254,7 @@ function imap_listscan($imap, string $reference, string $pattern, string $conten * @throws ImapException * */ -function imap_lsub($imap, string $reference, string $pattern): array +function imap_lsub( $imap, string $reference, string $pattern): array { error_clear_last(); $result = \imap_lsub($imap, $reference, $pattern); @@ -1410,7 +1410,7 @@ function imap_mail_compose(array $envelope, array $bodies): string * @throws ImapException * */ -function imap_mail_copy($imap, string $message_nums, string $mailbox, int $flags = 0): void +function imap_mail_copy( $imap, string $message_nums, string $mailbox, int $flags = 0): void { error_clear_last(); $result = \imap_mail_copy($imap, $message_nums, $mailbox, $flags); @@ -1441,7 +1441,7 @@ function imap_mail_copy($imap, string $message_nums, string $mailbox, int $flags * @throws ImapException * */ -function imap_mail_move($imap, string $message_nums, string $mailbox, int $flags = 0): void +function imap_mail_move( $imap, string $message_nums, string $mailbox, int $flags = 0): void { error_clear_last(); $result = \imap_mail_move($imap, $message_nums, $mailbox, $flags); @@ -1482,7 +1482,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio $result = \imap_mail($to, $subject, $message, $additional_headers, $cc); } elseif ($additional_headers !== null) { $result = \imap_mail($to, $subject, $message, $additional_headers); - } else { + }else { $result = \imap_mail($to, $subject, $message); } if ($result === false) { @@ -1544,7 +1544,7 @@ function imap_mail(string $to, string $subject, string $message, string $additio * @throws ImapException * */ -function imap_mailboxmsginfo($imap): \stdClass +function imap_mailboxmsginfo( $imap): \stdClass { error_clear_last(); $result = \imap_mailboxmsginfo($imap); @@ -1610,7 +1610,7 @@ function imap_mutf7_to_utf8(string $string): string * @throws ImapException * */ -function imap_num_msg($imap): int +function imap_num_msg( $imap): int { error_clear_last(); $result = \imap_num_msg($imap); @@ -1869,7 +1869,7 @@ function imap_qprint(string $string): string * @throws ImapException * */ -function imap_renamemailbox($imap, string $from, string $to): void +function imap_renamemailbox( $imap, string $from, string $to): void { error_clear_last(); $result = \imap_renamemailbox($imap, $from, $to); @@ -1934,7 +1934,7 @@ function imap_rfc822_write_address(?string $mailbox, ?string $hostname, ?string * @throws ImapException * */ -function imap_savebody($imap, $file, int $message_num, string $section = "", int $flags = 0): void +function imap_savebody( $imap, $file, int $message_num, string $section = "", int $flags = 0): void { error_clear_last(); $result = \imap_savebody($imap, $file, $message_num, $section, $flags); @@ -1955,7 +1955,7 @@ function imap_savebody($imap, $file, int $message_num, string $section = "", int * @throws ImapException * */ -function imap_set_quota($imap, string $quota_root, int $mailbox_size): void +function imap_set_quota( $imap, string $quota_root, int $mailbox_size): void { error_clear_last(); $result = \imap_set_quota($imap, $quota_root, $mailbox_size); @@ -1978,7 +1978,7 @@ function imap_set_quota($imap, string $quota_root, int $mailbox_size): void * @throws ImapException * */ -function imap_setacl($imap, string $mailbox, string $user_id, string $rights): void +function imap_setacl( $imap, string $mailbox, string $user_id, string $rights): void { error_clear_last(); $result = \imap_setacl($imap, $mailbox, $user_id, $rights); @@ -2014,7 +2014,7 @@ function imap_setacl($imap, string $mailbox, string $user_id, string $rights): v * @throws ImapException * */ -function imap_setflag_full($imap, string $sequence, string $flag, int $options = 0): void +function imap_setflag_full( $imap, string $sequence, string $flag, int $options = 0): void { error_clear_last(); $result = \imap_setflag_full($imap, $sequence, $flag, $options); @@ -2090,14 +2090,14 @@ function imap_setflag_full($imap, string $sequence, string $flag, int $options = * @throws ImapException * */ -function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, string $search_criteria = null, string $charset = null): array +function imap_sort( $imap, int $criteria, int $reverse, int $flags = 0, string $search_criteria = null, string $charset = null): array { error_clear_last(); if ($charset !== null) { $result = \imap_sort($imap, $criteria, $reverse, $flags, $search_criteria, $charset); } elseif ($search_criteria !== null) { $result = \imap_sort($imap, $criteria, $reverse, $flags, $search_criteria); - } else { + }else { $result = \imap_sort($imap, $criteria, $reverse, $flags); } if ($result === false) { @@ -2163,7 +2163,7 @@ function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, string $s * @throws ImapException * */ -function imap_status($imap, string $mailbox, int $flags): \stdClass +function imap_status( $imap, string $mailbox, int $flags): \stdClass { error_clear_last(); $result = \imap_status($imap, $mailbox, $flags); @@ -2184,7 +2184,7 @@ function imap_status($imap, string $mailbox, int $flags): \stdClass * @throws ImapException * */ -function imap_subscribe($imap, string $mailbox): void +function imap_subscribe( $imap, string $mailbox): void { error_clear_last(); $result = \imap_subscribe($imap, $mailbox); @@ -2219,7 +2219,7 @@ function imap_subscribe($imap, string $mailbox): void * @throws ImapException * */ -function imap_thread($imap, int $flags = SE_FREE): array +function imap_thread( $imap, int $flags = SE_FREE): array { error_clear_last(); $result = \imap_thread($imap, $flags); @@ -2270,7 +2270,7 @@ function imap_timeout(int $timeout_type, int $timeout = -1) * @throws ImapException * */ -function imap_undelete($imap, int $message_num, int $flags = 0): void +function imap_undelete( $imap, int $message_num, int $flags = 0): void { error_clear_last(); $result = \imap_undelete($imap, $message_num, $flags); @@ -2290,7 +2290,7 @@ function imap_undelete($imap, int $message_num, int $flags = 0): void * @throws ImapException * */ -function imap_unsubscribe($imap, string $mailbox): void +function imap_unsubscribe( $imap, string $mailbox): void { error_clear_last(); $result = \imap_unsubscribe($imap, $mailbox); @@ -2317,3 +2317,4 @@ function imap_utf8_to_mutf7(string $string): string } return $result; } + diff --git a/generated/info.php b/generated/info.php index e2aa08a1..c1023ce1 100644 --- a/generated/info.php +++ b/generated/info.php @@ -571,3 +571,4 @@ function set_time_limit(int $seconds): void throw InfoException::createFromPhpError(); } } + diff --git a/generated/ingres-ii.php b/generated/ingres-ii.php deleted file mode 100644 index dee0195e..00000000 --- a/generated/ingres-ii.php +++ /dev/null @@ -1,720 +0,0 @@ - - * ]]> - * - * - * * @param string $prompt The prompt message. * @param callable $callback The callback function takes one parameter; the * user input returned. @@ -127,7 +95,7 @@ function readline_read_history(string $filename = null): void error_clear_last(); if ($filename !== null) { $result = \readline_read_history($filename); - } else { + }else { $result = \readline_read_history(); } if ($result === false) { @@ -148,10 +116,11 @@ function readline_write_history(string $filename = null): void error_clear_last(); if ($filename !== null) { $result = \readline_write_history($filename); - } else { + }else { $result = \readline_write_history(); } if ($result === false) { throw ReadlineException::createFromPhpError(); } } + diff --git a/generated/rpminfo.php b/generated/rpminfo.php index 44de1ce2..354cd3bf 100644 --- a/generated/rpminfo.php +++ b/generated/rpminfo.php @@ -19,3 +19,4 @@ function rpmaddtag(int $tag): void throw RpminfoException::createFromPhpError(); } } + diff --git a/generated/rrd.php b/generated/rrd.php index 9bb3b5c5..09747d43 100644 --- a/generated/rrd.php +++ b/generated/rrd.php @@ -21,3 +21,171 @@ function rrd_create(string $filename, array $options): void throw RrdException::createFromPhpError(); } } + + +/** + * Returns the first data sample from the specified RRA of the RRD file. + * + * @param string $file RRD database file name. + * @param int $raaindex The index number of the RRA that is to be examined. Default value is 0. + * @return int Integer number of unix timestamp. + * @throws RrdException + * + */ +function rrd_first(string $file, int $raaindex = 0): int +{ + error_clear_last(); + $result = \rrd_first($file, $raaindex); + if ($result === false) { + throw RrdException::createFromPhpError(); + } + return $result; +} + + +/** + * Creates image for a particular data from RRD file. + * + * @param string $filename The filename to output the graph to. This will generally end in either + * .png, .svg or + * .eps, depending on the format you want to output. + * @param array $options Options for generating image. See man page of rrd graph for all + * possible options. All options (data definitions, variable definitions, etc.) + * are allowed. + * @return array Array with information about generated image is returned. + * @throws RrdException + * + */ +function rrd_graph(string $filename, array $options): array +{ + error_clear_last(); + $result = \rrd_graph($filename, $options); + if ($result === false) { + throw RrdException::createFromPhpError(); + } + return $result; +} + + +/** + * Returns information about particular RRD database file. + * + * @param string $filename RRD database file name. + * @return array Array with information about requested RRD file. + * @throws RrdException + * + */ +function rrd_info(string $filename): array +{ + error_clear_last(); + $result = \rrd_info($filename); + if ($result === false) { + throw RrdException::createFromPhpError(); + } + return $result; +} + + +/** + * Gets array of the UNIX timestamp and the values stored for each date in the + * most recent update of the RRD database file. + * + * @param string $filename RRD database file name. + * @return array Array of information about last update. + * @throws RrdException + * + */ +function rrd_lastupdate(string $filename): array +{ + error_clear_last(); + $result = \rrd_lastupdate($filename); + if ($result === false) { + throw RrdException::createFromPhpError(); + } + return $result; +} + + +/** + * Restores the RRD file from the XML dump. + * + * @param string $xml_file XML filename with the dump of the original RRD database file. + * @param string $rrd_file Restored RRD database file name. + * @param array $options Array of options for restoring. See man page for rrd restore. + * @throws RrdException + * + */ +function rrd_restore(string $xml_file, string $rrd_file, array $options = null): void +{ + error_clear_last(); + if ($options !== null) { + $result = \rrd_restore($xml_file, $rrd_file, $options); + }else { + $result = \rrd_restore($xml_file, $rrd_file); + } + if ($result === false) { + throw RrdException::createFromPhpError(); + } +} + + +/** + * Change some options in the RRD dabase header file. E.g. renames the source for + * the data etc. + * + * @param string $filename RRD database file name. + * @param array $options Options with RRD database file properties which will be changed. See + * rrd tune man page for details. + * @throws RrdException + * + */ +function rrd_tune(string $filename, array $options): void +{ + error_clear_last(); + $result = \rrd_tune($filename, $options); + if ($result === false) { + throw RrdException::createFromPhpError(); + } +} + + +/** + * Updates the RRD database file. The input data is time interpolated according to the + * properties of the RRD database file. + * + * @param string $filename RRD database file name. This database will be updated. + * @param array $options Options for updating the RRD database. This is list of strings. See man page of rrd update + * for whole list of options. + * @throws RrdException + * + */ +function rrd_update(string $filename, array $options): void +{ + error_clear_last(); + $result = \rrd_update($filename, $options); + if ($result === false) { + throw RrdException::createFromPhpError(); + } +} + + +/** + * Exports the information about RRD database file. This data can be converted + * to XML file via user space PHP script and then restored back as RRD database + * file. + * + * @param array $options Array of options for the export, see rrd xport man page. + * @return array Array with information about RRD database file. + * @throws RrdException + * + */ +function rrd_xport(array $options): array +{ + error_clear_last(); + $result = \rrd_xport($options); + if ($result === false) { + throw RrdException::createFromPhpError(); + } + return $result; +} + diff --git a/generated/sem.php b/generated/sem.php index 02021215..dac78a65 100644 --- a/generated/sem.php +++ b/generated/sem.php @@ -120,7 +120,7 @@ function msg_queue_exists(int $key): void * @throws SemException * */ -function msg_receive($queue, int $desired_message_type, ?int &$received_message_type, int $max_message_size, &$message, bool $unserialize = true, int $flags = 0, ?int &$error_code = null): void +function msg_receive( $queue, int $desired_message_type, ?int &$received_message_type, int $max_message_size, &$message, bool $unserialize = true, int $flags = 0, ?int &$error_code = null): void { error_clear_last(); $result = \msg_receive($queue, $desired_message_type, $received_message_type, $max_message_size, $message, $unserialize, $flags, $error_code); @@ -140,7 +140,7 @@ function msg_receive($queue, int $desired_message_type, ?int &$received_message_ * @throws SemException * */ -function msg_remove_queue($queue): void +function msg_remove_queue( $queue): void { error_clear_last(); $result = \msg_remove_queue($queue); @@ -183,7 +183,7 @@ function msg_remove_queue($queue): void * @throws SemException * */ -function msg_send($queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, ?int &$error_code = null): void +function msg_send( $queue, int $message_type, $message, bool $serialize = true, bool $blocking = true, ?int &$error_code = null): void { error_clear_last(); $result = \msg_send($queue, $message_type, $message, $serialize, $blocking, $error_code); @@ -210,7 +210,7 @@ function msg_send($queue, int $message_type, $message, bool $serialize = true, b * @throws SemException * */ -function msg_set_queue($queue, array $data): void +function msg_set_queue( $queue, array $data): void { error_clear_last(); $result = \msg_set_queue($queue, $data); @@ -303,7 +303,7 @@ function msg_set_queue($queue, array $data): void * @throws SemException * */ -function msg_stat_queue($queue): array +function msg_stat_queue( $queue): array { error_clear_last(); $result = \msg_stat_queue($queue); @@ -333,7 +333,7 @@ function msg_stat_queue($queue): array * @throws SemException * */ -function sem_acquire($semaphore, bool $non_blocking = false): void +function sem_acquire( $semaphore, bool $non_blocking = false): void { error_clear_last(); $result = \sem_acquire($semaphore, $non_blocking); @@ -390,7 +390,7 @@ function sem_get(int $key, int $max_acquire = 1, int $permissions = 0666, bool $ * @throws SemException * */ -function sem_release($semaphore): void +function sem_release( $semaphore): void { error_clear_last(); $result = \sem_release($semaphore); @@ -410,7 +410,7 @@ function sem_release($semaphore): void * @throws SemException * */ -function sem_remove($semaphore): void +function sem_remove( $semaphore): void { error_clear_last(); $result = \sem_remove($semaphore); @@ -449,7 +449,7 @@ function shm_attach(int $key, int $size = null, int $permissions = 0666) $result = \shm_attach($key, $size, $permissions); } elseif ($size !== null) { $result = \shm_attach($key, $size); - } else { + }else { $result = \shm_attach($key); } if ($result === false) { @@ -469,7 +469,7 @@ function shm_attach(int $key, int $size = null, int $permissions = 0666) * @throws SemException * */ -function shm_detach($shm): void +function shm_detach( $shm): void { error_clear_last(); $result = \shm_detach($shm); @@ -498,7 +498,7 @@ function shm_detach($shm): void * @throws SemException * */ -function shm_put_var($shm, int $key, $value): void +function shm_put_var( $shm, int $key, $value): void { error_clear_last(); $result = \shm_put_var($shm, $key, $value); @@ -517,7 +517,7 @@ function shm_put_var($shm, int $key, $value): void * @throws SemException * */ -function shm_remove_var($shm, int $key): void +function shm_remove_var( $shm, int $key): void { error_clear_last(); $result = \shm_remove_var($shm, $key); @@ -535,7 +535,7 @@ function shm_remove_var($shm, int $key): void * @throws SemException * */ -function shm_remove($shm): void +function shm_remove( $shm): void { error_clear_last(); $result = \shm_remove($shm); @@ -543,3 +543,4 @@ function shm_remove($shm): void throw SemException::createFromPhpError(); } } + diff --git a/generated/session.php b/generated/session.php index 212cf850..dc8e128b 100644 --- a/generated/session.php +++ b/generated/session.php @@ -154,7 +154,7 @@ function session_id(string $id = null): string error_clear_last(); if ($id !== null) { $result = \session_id($id); - } else { + }else { $result = \session_id(); } if ($result === false) { @@ -183,7 +183,7 @@ function session_module_name(string $module = null): string error_clear_last(); if ($module !== null) { $result = \session_module_name($module); - } else { + }else { $result = \session_module_name(); } if ($result === false) { @@ -240,7 +240,7 @@ function session_name(string $name = null): string error_clear_last(); if ($name !== null) { $result = \session_name($name); - } else { + }else { $result = \session_name(); } if ($result === false) { @@ -321,7 +321,7 @@ function session_save_path(string $path = null): string error_clear_last(); if ($path !== null) { $result = \session_save_path($path); - } else { + }else { $result = \session_save_path(); } if ($result === false) { @@ -370,3 +370,4 @@ function session_write_close(): void throw SessionException::createFromPhpError(); } } + diff --git a/generated/shmop.php b/generated/shmop.php index aa5d8f49..95369554 100644 --- a/generated/shmop.php +++ b/generated/shmop.php @@ -12,7 +12,7 @@ * @throws ShmopException * */ -function shmop_delete($shmop): void +function shmop_delete( $shmop): void { error_clear_last(); $result = \shmop_delete($shmop); @@ -34,7 +34,7 @@ function shmop_delete($shmop): void * @throws ShmopException * */ -function shmop_read($shmop, int $offset, int $size): string +function shmop_read( $shmop, int $offset, int $size): string { error_clear_last(); $result = \shmop_read($shmop, $offset, $size); @@ -43,3 +43,4 @@ function shmop_read($shmop, int $offset, int $size): string } return $result; } + diff --git a/generated/simplexml.php b/generated/simplexml.php index 118de443..e57e40d1 100644 --- a/generated/simplexml.php +++ b/generated/simplexml.php @@ -14,15 +14,15 @@ * simplexml_import_dom will return an object of * the specified class. That class should extend the * SimpleXMLElement class. - * @return \SimpleXMLElement Returns a SimpleXMLElement. + * @return \SimpleXMLElement|false Returns a SimpleXMLElement. * @throws SimplexmlException * */ -function simplexml_import_dom(\DOMNode $node, string $class_name = "SimpleXMLElement"): \SimpleXMLElement +function simplexml_import_dom(\DOMNode $node, string $class_name = SimpleXMLElement::class): \SimpleXMLElement { error_clear_last(); $result = \simplexml_import_dom($node, $class_name); - if ($result === false) { + if ($result === null) { throw SimplexmlException::createFromPhpError(); } return $result; @@ -33,31 +33,24 @@ function simplexml_import_dom(\DOMNode $node, string $class_name = "SimpleXMLEle * Convert the well-formed XML document in the given file to an object. * * @param string $filename Path to the XML file - * - * Libxml 2 unescapes the URI, so if you want to pass e.g. - * b&c as the URI parameter a, - * you have to call - * simplexml_load_file(rawurlencode('http://example.com/?a=' . - * urlencode('b&c'))). Since PHP 5.1.0 you don't need to do - * this because PHP will do it for you. * @param string $class_name You may use this optional parameter so that * simplexml_load_file will return an object of * the specified class. That class should extend the * SimpleXMLElement class. - * @param int $options Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + * @param int $options Since Libxml 2.6.0, you may also use the * options parameter to specify additional Libxml parameters. - * @param string $ns Namespace prefix or URI. - * @param bool $is_prefix TRUE if ns is a prefix, FALSE if it's a URI; + * @param string $namespace_or_prefix Namespace prefix or URI. + * @param bool $is_prefix TRUE if namespace_or_prefix is a prefix, FALSE if it's a URI; * defaults to FALSE. * @return \SimpleXMLElement Returns an object of class SimpleXMLElement with * properties containing the data held within the XML document. * @throws SimplexmlException * */ -function simplexml_load_file(string $filename, string $class_name = "SimpleXMLElement", int $options = 0, string $ns = "", bool $is_prefix = false): \SimpleXMLElement +function simplexml_load_file(string $filename, string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): \SimpleXMLElement { error_clear_last(); - $result = \simplexml_load_file($filename, $class_name, $options, $ns, $is_prefix); + $result = \simplexml_load_file($filename, $class_name, $options, $namespace_or_prefix, $is_prefix); if ($result === false) { throw SimplexmlException::createFromPhpError(); } @@ -73,22 +66,23 @@ function simplexml_load_file(string $filename, string $class_name = "SimpleXMLEl * simplexml_load_string will return an object of * the specified class. That class should extend the * SimpleXMLElement class. - * @param int $options Since PHP 5.1.0 and Libxml 2.6.0, you may also use the + * @param int $options Since Libxml 2.6.0, you may also use the * options parameter to specify additional Libxml parameters. - * @param string $ns Namespace prefix or URI. - * @param bool $is_prefix TRUE if ns is a prefix, FALSE if it's a URI; + * @param string $namespace_or_prefix Namespace prefix or URI. + * @param bool $is_prefix TRUE if namespace_or_prefix is a prefix, FALSE if it's a URI; * defaults to FALSE. * @return \SimpleXMLElement Returns an object of class SimpleXMLElement with * properties containing the data held within the xml document. * @throws SimplexmlException * */ -function simplexml_load_string(string $data, string $class_name = "SimpleXMLElement", int $options = 0, string $ns = "", bool $is_prefix = false): \SimpleXMLElement +function simplexml_load_string(string $data, string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): \SimpleXMLElement { error_clear_last(); - $result = \simplexml_load_string($data, $class_name, $options, $ns, $is_prefix); + $result = \simplexml_load_string($data, $class_name, $options, $namespace_or_prefix, $is_prefix); if ($result === false) { throw SimplexmlException::createFromPhpError(); } return $result; } + diff --git a/generated/sockets.php b/generated/sockets.php index 63ceb10a..4bf5fa01 100644 --- a/generated/sockets.php +++ b/generated/sockets.php @@ -34,7 +34,7 @@ * @throws SocketsException * */ -function socket_accept($socket) +function socket_accept( $socket) { error_clear_last(); $result = \socket_accept($socket); @@ -54,7 +54,7 @@ function socket_accept($socket) * @throws SocketsException * */ -function socket_addrinfo_bind($address) +function socket_addrinfo_bind( $address) { error_clear_last(); $result = \socket_addrinfo_bind($address); @@ -74,7 +74,7 @@ function socket_addrinfo_bind($address) * @throws SocketsException * */ -function socket_addrinfo_connect($address) +function socket_addrinfo_connect( $address) { error_clear_last(); $result = \socket_addrinfo_connect($address); @@ -99,14 +99,14 @@ function socket_addrinfo_connect($address) * @throws SocketsException * */ -function socket_addrinfo_lookup(string $host, $service = null, array $hints = []): iterable +function socket_addrinfo_lookup(string $host, $service = null, array $hints = []): iterable { error_clear_last(); if ($hints !== []) { $result = \socket_addrinfo_lookup($host, $service, $hints); } elseif ($service !== null) { $result = \socket_addrinfo_lookup($host, $service); - } else { + }else { $result = \socket_addrinfo_lookup($host); } if ($result === false) { @@ -136,7 +136,7 @@ function socket_addrinfo_lookup(string $host, $service = null, array $hints = [] * @throws SocketsException * */ -function socket_bind($socket, string $address, int $port = 0): void +function socket_bind( $socket, string $address, int $port = 0): void { error_clear_last(); $result = \socket_bind($socket, $address, $port); @@ -151,7 +151,8 @@ function socket_bind($socket, string $address, int $port = 0): void * socket, which must be Socket * instance created with socket_create. * - * @param resource $socket + * @param resource $socket A Socket instance created with + * socket_create. * @param string $address The address parameter is either an IPv4 address * in dotted-quad notation (e.g. 127.0.0.1) if * socket is AF_INET, a valid @@ -166,12 +167,12 @@ function socket_bind($socket, string $address, int $port = 0): void * @throws SocketsException * */ -function socket_connect($socket, string $address, int $port = null): void +function socket_connect( $socket, string $address, int $port = null): void { error_clear_last(); if ($port !== null) { $result = \socket_connect($socket, $address, $port); - } else { + }else { $result = \socket_connect($socket, $address); } if ($result === false) { @@ -290,7 +291,7 @@ function socket_create(int $domain, int $type, int $protocol) * @throws SocketsException * */ -function socket_export_stream($socket) +function socket_export_stream( $socket) { error_clear_last(); $result = \socket_export_stream($socket); @@ -337,7 +338,7 @@ function socket_export_stream($socket) * @throws SocketsException * */ -function socket_get_option($socket, int $level, int $option) +function socket_get_option( $socket, int $level, int $option) { error_clear_last(); $result = \socket_get_option($socket, $level, $option); @@ -371,7 +372,7 @@ function socket_get_option($socket, int $level, int $option) * @throws SocketsException * */ -function socket_getpeername($socket, ?string &$address, ?int &$port = null): void +function socket_getpeername( $socket, ?string &$address, ?int &$port = null): void { error_clear_last(); $result = \socket_getpeername($socket, $address, $port); @@ -401,7 +402,7 @@ function socket_getpeername($socket, ?string &$address, ?int &$port = null): voi * @throws SocketsException * */ -function socket_getsockname($socket, ?string &$address, ?int &$port = null): void +function socket_getsockname( $socket, ?string &$address, ?int &$port = null): void { error_clear_last(); $result = \socket_getsockname($socket, $address, $port); @@ -419,7 +420,7 @@ function socket_getsockname($socket, ?string &$address, ?int &$port = null): voi * @throws SocketsException * */ -function socket_import_stream($stream) +function socket_import_stream( $stream) { error_clear_last(); $result = \socket_import_stream($stream); @@ -458,7 +459,7 @@ function socket_import_stream($stream) * @throws SocketsException * */ -function socket_listen($socket, int $backlog = 0): void +function socket_listen( $socket, int $backlog = 0): void { error_clear_last(); $result = \socket_listen($socket, $backlog); @@ -504,7 +505,7 @@ function socket_listen($socket, int $backlog = 0): void * @throws SocketsException * */ -function socket_read($socket, int $length, int $mode = PHP_BINARY_READ): string +function socket_read( $socket, int $length, int $mode = PHP_BINARY_READ): string { error_clear_last(); $result = \socket_read($socket, $length, $mode); @@ -565,7 +566,7 @@ function socket_read($socket, int $length, int $mode = PHP_BINARY_READ): string * @throws SocketsException * */ -function socket_send($socket, string $data, int $length, int $flags): int +function socket_send( $socket, string $data, int $length, int $flags): int { error_clear_last(); $result = \socket_send($socket, $data, $length, $flags); @@ -586,7 +587,7 @@ function socket_send($socket, string $data, int $length, int $flags): int * @throws SocketsException * */ -function socket_sendmsg($socket, array $message, int $flags = 0): int +function socket_sendmsg( $socket, array $message, int $flags = 0): int { error_clear_last(); $result = \socket_sendmsg($socket, $message, $flags); @@ -651,12 +652,12 @@ function socket_sendmsg($socket, array $message, int $flags = 0): int * @throws SocketsException * */ -function socket_sendto($socket, string $data, int $length, int $flags, string $address, int $port = null): int +function socket_sendto( $socket, string $data, int $length, int $flags, string $address, int $port = null): int { error_clear_last(); if ($port !== null) { $result = \socket_sendto($socket, $data, $length, $flags, $address, $port); - } else { + }else { $result = \socket_sendto($socket, $data, $length, $flags, $address); } if ($result === false) { @@ -680,7 +681,7 @@ function socket_sendto($socket, string $data, int $length, int $flags, string $a * @throws SocketsException * */ -function socket_set_block($socket): void +function socket_set_block( $socket): void { error_clear_last(); $result = \socket_set_block($socket); @@ -705,7 +706,7 @@ function socket_set_block($socket): void * @throws SocketsException * */ -function socket_set_nonblock($socket): void +function socket_set_nonblock( $socket): void { error_clear_last(); $result = \socket_set_nonblock($socket); @@ -737,7 +738,7 @@ function socket_set_nonblock($socket): void * @throws SocketsException * */ -function socket_set_option($socket, int $level, int $option, $value): void +function socket_set_option( $socket, int $level, int $option, $value): void { error_clear_last(); $result = \socket_set_option($socket, $level, $option, $value); @@ -782,7 +783,7 @@ function socket_set_option($socket, int $level, int $option, $value): void * @throws SocketsException * */ -function socket_shutdown($socket, int $mode = 2): void +function socket_shutdown( $socket, int $mode = 2): void { error_clear_last(); $result = \socket_shutdown($socket, $mode); @@ -803,7 +804,7 @@ function socket_shutdown($socket, int $mode = 2): void * @throws SocketsException * */ -function socket_wsaprotocol_info_export($socket, int $process_id): string +function socket_wsaprotocol_info_export( $socket, int $process_id): string { error_clear_last(); $result = \socket_wsaprotocol_info_export($socket, $process_id); @@ -850,3 +851,4 @@ function socket_wsaprotocol_info_release(string $info_id): void throw SocketsException::createFromPhpError(); } } + diff --git a/generated/sodium.php b/generated/sodium.php new file mode 100644 index 00000000..0fc554b2 --- /dev/null +++ b/generated/sodium.php @@ -0,0 +1,304 @@ + 'Safe\apache_get_version', 'apache_lookup_uri' => 'Safe\apache_lookup_uri', 'apache_request_headers' => 'Safe\apache_request_headers', - 'apache_reset_timeout' => 'Safe\apache_reset_timeout', 'apache_response_headers' => 'Safe\apache_response_headers', 'apache_setenv' => 'Safe\apache_setenv', 'apcu_cache_info' => 'Safe\apcu_cache_info', @@ -33,6 +32,7 @@ 'arsort' => 'Safe\arsort', 'asort' => 'Safe\asort', 'base64_decode' => 'Safe\base64_decode', + 'bindtextdomain' => 'Safe\bindtextdomain', 'bzclose' => 'Safe\bzclose', 'bzflush' => 'Safe\bzflush', 'bzread' => 'Safe\bzread', @@ -56,18 +56,60 @@ 'copy' => 'Safe\copy', 'count_chars' => 'Safe\count_chars', 'create_function' => 'Safe\create_function', + 'cubrid_bind' => 'Safe\cubrid_bind', + 'cubrid_column_names' => 'Safe\cubrid_column_names', + 'cubrid_column_types' => 'Safe\cubrid_column_types', + 'cubrid_col_size' => 'Safe\cubrid_col_size', + 'cubrid_commit' => 'Safe\cubrid_commit', + 'cubrid_connect' => 'Safe\cubrid_connect', + 'cubrid_connect_with_url' => 'Safe\cubrid_connect_with_url', + 'cubrid_current_oid' => 'Safe\cubrid_current_oid', + 'cubrid_disconnect' => 'Safe\cubrid_disconnect', + 'cubrid_drop' => 'Safe\cubrid_drop', 'cubrid_free_result' => 'Safe\cubrid_free_result', 'cubrid_get_charset' => 'Safe\cubrid_get_charset', + 'cubrid_get_class_name' => 'Safe\cubrid_get_class_name', 'cubrid_get_client_info' => 'Safe\cubrid_get_client_info', 'cubrid_get_db_parameter' => 'Safe\cubrid_get_db_parameter', + 'cubrid_get_query_timeout' => 'Safe\cubrid_get_query_timeout', 'cubrid_get_server_info' => 'Safe\cubrid_get_server_info', 'cubrid_insert_id' => 'Safe\cubrid_insert_id', + 'cubrid_lob2_bind' => 'Safe\cubrid_lob2_bind', + 'cubrid_lob2_close' => 'Safe\cubrid_lob2_close', + 'cubrid_lob2_export' => 'Safe\cubrid_lob2_export', + 'cubrid_lob2_import' => 'Safe\cubrid_lob2_import', 'cubrid_lob2_new' => 'Safe\cubrid_lob2_new', + 'cubrid_lob2_read' => 'Safe\cubrid_lob2_read', + 'cubrid_lob2_seek' => 'Safe\cubrid_lob2_seek', + 'cubrid_lob2_seek64' => 'Safe\cubrid_lob2_seek64', 'cubrid_lob2_size' => 'Safe\cubrid_lob2_size', 'cubrid_lob2_size64' => 'Safe\cubrid_lob2_size64', 'cubrid_lob2_tell' => 'Safe\cubrid_lob2_tell', 'cubrid_lob2_tell64' => 'Safe\cubrid_lob2_tell64', + 'cubrid_lob2_write' => 'Safe\cubrid_lob2_write', + 'cubrid_lob_close' => 'Safe\cubrid_lob_close', + 'cubrid_lob_export' => 'Safe\cubrid_lob_export', + 'cubrid_lob_get' => 'Safe\cubrid_lob_get', + 'cubrid_lob_send' => 'Safe\cubrid_lob_send', + 'cubrid_lob_size' => 'Safe\cubrid_lob_size', + 'cubrid_lock_read' => 'Safe\cubrid_lock_read', + 'cubrid_lock_write' => 'Safe\cubrid_lock_write', + 'cubrid_move_cursor' => 'Safe\cubrid_move_cursor', + 'cubrid_next_result' => 'Safe\cubrid_next_result', + 'cubrid_pconnect' => 'Safe\cubrid_pconnect', + 'cubrid_pconnect_with_url' => 'Safe\cubrid_pconnect_with_url', + 'cubrid_prepare' => 'Safe\cubrid_prepare', + 'cubrid_put' => 'Safe\cubrid_put', + 'cubrid_rollback' => 'Safe\cubrid_rollback', + 'cubrid_schema' => 'Safe\cubrid_schema', + 'cubrid_seq_drop' => 'Safe\cubrid_seq_drop', + 'cubrid_seq_insert' => 'Safe\cubrid_seq_insert', + 'cubrid_seq_put' => 'Safe\cubrid_seq_put', + 'cubrid_set_add' => 'Safe\cubrid_set_add', + 'cubrid_set_autocommit' => 'Safe\cubrid_set_autocommit', 'cubrid_set_db_parameter' => 'Safe\cubrid_set_db_parameter', + 'cubrid_set_drop' => 'Safe\cubrid_set_drop', + 'cubrid_set_query_timeout' => 'Safe\cubrid_set_query_timeout', 'curl_copy_handle' => 'Safe\curl_copy_handle', 'curl_escape' => 'Safe\curl_escape', 'curl_exec' => 'Safe\curl_exec', @@ -106,6 +148,7 @@ 'disk_total_space' => 'Safe\disk_total_space', 'dl' => 'Safe\dl', 'dns_get_record' => 'Safe\dns_get_record', + 'dom_import_simplexml' => 'Safe\dom_import_simplexml', 'eio_busy' => 'Safe\eio_busy', 'eio_chmod' => 'Safe\eio_chmod', 'eio_chown' => 'Safe\eio_chown', @@ -115,6 +158,7 @@ 'eio_event_loop' => 'Safe\eio_event_loop', 'eio_fallocate' => 'Safe\eio_fallocate', 'eio_fchmod' => 'Safe\eio_fchmod', + 'eio_fchown' => 'Safe\eio_fchown', 'eio_fdatasync' => 'Safe\eio_fdatasync', 'eio_fstat' => 'Safe\eio_fstat', 'eio_fstatvfs' => 'Safe\eio_fstatvfs', @@ -288,6 +332,8 @@ 'imagecolorat' => 'Safe\imagecolorat', 'imagecolordeallocate' => 'Safe\imagecolordeallocate', 'imagecolormatch' => 'Safe\imagecolormatch', + 'imagecolorset' => 'Safe\imagecolorset', + 'imagecolorsforindex' => 'Safe\imagecolorsforindex', 'imageconvolution' => 'Safe\imageconvolution', 'imagecopy' => 'Safe\imagecopy', 'imagecopymerge' => 'Safe\imagecopymerge', @@ -319,6 +365,8 @@ 'imagefilltoborder' => 'Safe\imagefilltoborder', 'imagefilter' => 'Safe\imagefilter', 'imageflip' => 'Safe\imageflip', + 'imageftbbox' => 'Safe\imageftbbox', + 'imagefttext' => 'Safe\imagefttext', 'imagegammacorrect' => 'Safe\imagegammacorrect', 'imagegd' => 'Safe\imagegd', 'imagegd2' => 'Safe\imagegd2', @@ -331,6 +379,7 @@ 'imageloadfont' => 'Safe\imageloadfont', 'imagepng' => 'Safe\imagepng', 'imagerectangle' => 'Safe\imagerectangle', + 'imageresolution' => 'Safe\imageresolution', 'imagerotate' => 'Safe\imagerotate', 'imagesavealpha' => 'Safe\imagesavealpha', 'imagescale' => 'Safe\imagescale', @@ -405,18 +454,6 @@ 'inflate_get_read_len' => 'Safe\inflate_get_read_len', 'inflate_get_status' => 'Safe\inflate_get_status', 'inflate_init' => 'Safe\inflate_init', - 'ingres_autocommit' => 'Safe\ingres_autocommit', - 'ingres_close' => 'Safe\ingres_close', - 'ingres_commit' => 'Safe\ingres_commit', - 'ingres_connect' => 'Safe\ingres_connect', - 'ingres_execute' => 'Safe\ingres_execute', - 'ingres_field_name' => 'Safe\ingres_field_name', - 'ingres_field_type' => 'Safe\ingres_field_type', - 'ingres_free_result' => 'Safe\ingres_free_result', - 'ingres_pconnect' => 'Safe\ingres_pconnect', - 'ingres_result_seek' => 'Safe\ingres_result_seek', - 'ingres_rollback' => 'Safe\ingres_rollback', - 'ingres_set_environment' => 'Safe\ingres_set_environment', 'ini_get' => 'Safe\ini_get', 'ini_set' => 'Safe\ini_set', 'inotify_init' => 'Safe\inotify_init', @@ -517,13 +554,6 @@ 'msg_set_queue' => 'Safe\msg_set_queue', 'msg_stat_queue' => 'Safe\msg_stat_queue', 'mysqli_get_client_stats' => 'Safe\mysqli_get_client_stats', - 'mysqlnd_ms_dump_servers' => 'Safe\mysqlnd_ms_dump_servers', - 'mysqlnd_ms_fabric_select_global' => 'Safe\mysqlnd_ms_fabric_select_global', - 'mysqlnd_ms_fabric_select_shard' => 'Safe\mysqlnd_ms_fabric_select_shard', - 'mysqlnd_ms_get_last_used_connection' => 'Safe\mysqlnd_ms_get_last_used_connection', - 'mysqlnd_qc_clear_cache' => 'Safe\mysqlnd_qc_clear_cache', - 'mysqlnd_qc_set_is_select' => 'Safe\mysqlnd_qc_set_is_select', - 'mysqlnd_qc_set_storage_handler' => 'Safe\mysqlnd_qc_set_storage_handler', 'mysql_close' => 'Safe\mysql_close', 'mysql_connect' => 'Safe\mysql_connect', 'mysql_create_db' => 'Safe\mysql_create_db', @@ -643,6 +673,7 @@ 'openssl_cms_verify' => 'Safe\openssl_cms_verify', 'openssl_csr_export' => 'Safe\openssl_csr_export', 'openssl_csr_export_to_file' => 'Safe\openssl_csr_export_to_file', + 'openssl_csr_get_public_key' => 'Safe\openssl_csr_get_public_key', 'openssl_csr_get_subject' => 'Safe\openssl_csr_get_subject', 'openssl_csr_new' => 'Safe\openssl_csr_new', 'openssl_csr_sign' => 'Safe\openssl_csr_sign', @@ -650,6 +681,7 @@ 'openssl_dh_compute_key' => 'Safe\openssl_dh_compute_key', 'openssl_digest' => 'Safe\openssl_digest', 'openssl_encrypt' => 'Safe\openssl_encrypt', + 'openssl_get_curve_names' => 'Safe\openssl_get_curve_names', 'openssl_open' => 'Safe\openssl_open', 'openssl_pbkdf2' => 'Safe\openssl_pbkdf2', 'openssl_pkcs7_decrypt' => 'Safe\openssl_pkcs7_decrypt', @@ -659,6 +691,7 @@ 'openssl_pkcs12_export' => 'Safe\openssl_pkcs12_export', 'openssl_pkcs12_export_to_file' => 'Safe\openssl_pkcs12_export_to_file', 'openssl_pkcs12_read' => 'Safe\openssl_pkcs12_read', + 'openssl_pkey_derive' => 'Safe\openssl_pkey_derive', 'openssl_pkey_export' => 'Safe\openssl_pkey_export', 'openssl_pkey_export_to_file' => 'Safe\openssl_pkey_export_to_file', 'openssl_pkey_get_private' => 'Safe\openssl_pkey_get_private', @@ -671,6 +704,11 @@ 'openssl_random_pseudo_bytes' => 'Safe\openssl_random_pseudo_bytes', 'openssl_seal' => 'Safe\openssl_seal', 'openssl_sign' => 'Safe\openssl_sign', + 'openssl_spki_export' => 'Safe\openssl_spki_export', + 'openssl_spki_export_challenge' => 'Safe\openssl_spki_export_challenge', + 'openssl_spki_new' => 'Safe\openssl_spki_new', + 'openssl_spki_verify' => 'Safe\openssl_spki_verify', + 'openssl_verify' => 'Safe\openssl_verify', 'openssl_x509_export' => 'Safe\openssl_x509_export', 'openssl_x509_export_to_file' => 'Safe\openssl_x509_export_to_file', 'openssl_x509_fingerprint' => 'Safe\openssl_x509_fingerprint', @@ -688,6 +726,7 @@ 'pcntl_signal_dispatch' => 'Safe\pcntl_signal_dispatch', 'pcntl_sigprocmask' => 'Safe\pcntl_sigprocmask', 'pcntl_strerror' => 'Safe\pcntl_strerror', + 'pfsockopen' => 'Safe\pfsockopen', 'pg_cancel_query' => 'Safe\pg_cancel_query', 'pg_client_encoding' => 'Safe\pg_client_encoding', 'pg_close' => 'Safe\pg_close', @@ -872,6 +911,14 @@ 'rmdir' => 'Safe\rmdir', 'rpmaddtag' => 'Safe\rpmaddtag', 'rrd_create' => 'Safe\rrd_create', + 'rrd_first' => 'Safe\rrd_first', + 'rrd_graph' => 'Safe\rrd_graph', + 'rrd_info' => 'Safe\rrd_info', + 'rrd_lastupdate' => 'Safe\rrd_lastupdate', + 'rrd_restore' => 'Safe\rrd_restore', + 'rrd_tune' => 'Safe\rrd_tune', + 'rrd_update' => 'Safe\rrd_update', + 'rrd_xport' => 'Safe\rrd_xport', 'rsort' => 'Safe\rsort', 'sapi_windows_cp_conv' => 'Safe\sapi_windows_cp_conv', 'sapi_windows_cp_set' => 'Safe\sapi_windows_cp_set', @@ -899,6 +946,7 @@ 'set_include_path' => 'Safe\set_include_path', 'set_time_limit' => 'Safe\set_time_limit', 'sha1_file' => 'Safe\sha1_file', + 'shell_exec' => 'Safe\shell_exec', 'shmop_delete' => 'Safe\shmop_delete', 'shmop_read' => 'Safe\shmop_read', 'shm_attach' => 'Safe\shm_attach', @@ -938,9 +986,21 @@ 'socket_wsaprotocol_info_export' => 'Safe\socket_wsaprotocol_info_export', 'socket_wsaprotocol_info_import' => 'Safe\socket_wsaprotocol_info_import', 'socket_wsaprotocol_info_release' => 'Safe\socket_wsaprotocol_info_release', + 'sodium_crypto_aead_aes256gcm_decrypt' => 'Safe\sodium_crypto_aead_aes256gcm_decrypt', + 'sodium_crypto_aead_chacha20poly1305_decrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_decrypt', + 'sodium_crypto_aead_chacha20poly1305_encrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_encrypt', + 'sodium_crypto_aead_chacha20poly1305_ietf_decrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_ietf_decrypt', + 'sodium_crypto_aead_chacha20poly1305_ietf_encrypt' => 'Safe\sodium_crypto_aead_chacha20poly1305_ietf_encrypt', + 'sodium_crypto_aead_xchacha20poly1305_ietf_decrypt' => 'Safe\sodium_crypto_aead_xchacha20poly1305_ietf_decrypt', + 'sodium_crypto_aead_xchacha20poly1305_ietf_encrypt' => 'Safe\sodium_crypto_aead_xchacha20poly1305_ietf_encrypt', + 'sodium_crypto_auth_verify' => 'Safe\sodium_crypto_auth_verify', + 'sodium_crypto_box_open' => 'Safe\sodium_crypto_box_open', + 'sodium_crypto_box_seal_open' => 'Safe\sodium_crypto_box_seal_open', + 'sodium_crypto_generichash_update' => 'Safe\sodium_crypto_generichash_update', + 'sodium_crypto_sign_open' => 'Safe\sodium_crypto_sign_open', + 'sodium_crypto_sign_verify_detached' => 'Safe\sodium_crypto_sign_verify_detached', 'solr_get_version' => 'Safe\solr_get_version', 'sort' => 'Safe\sort', - 'spl_autoload_register' => 'Safe\spl_autoload_register', 'spl_autoload_unregister' => 'Safe\spl_autoload_unregister', 'sprintf' => 'Safe\sprintf', 'sqlsrv_begin_transaction' => 'Safe\sqlsrv_begin_transaction', @@ -975,6 +1035,7 @@ 'ssh2_publickey_remove' => 'Safe\ssh2_publickey_remove', 'ssh2_scp_recv' => 'Safe\ssh2_scp_recv', 'ssh2_scp_send' => 'Safe\ssh2_scp_send', + 'ssh2_send_eof' => 'Safe\ssh2_send_eof', 'ssh2_sftp' => 'Safe\ssh2_sftp', 'ssh2_sftp_chmod' => 'Safe\ssh2_sftp_chmod', 'ssh2_sftp_mkdir' => 'Safe\ssh2_sftp_mkdir', @@ -982,6 +1043,7 @@ 'ssh2_sftp_rmdir' => 'Safe\ssh2_sftp_rmdir', 'ssh2_sftp_symlink' => 'Safe\ssh2_sftp_symlink', 'ssh2_sftp_unlink' => 'Safe\ssh2_sftp_unlink', + 'ssh2_shell' => 'Safe\ssh2_shell', 'stream_context_set_params' => 'Safe\stream_context_set_params', 'stream_copy_to_stream' => 'Safe\stream_copy_to_stream', 'stream_filter_append' => 'Safe\stream_filter_append',