Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
"psr-4": {
"Safe\\": [
"lib/",
"deprecated/",
"generated/"
]
},
"files": [
"deprecated/apc.php",
"deprecated/libevent.php",
"deprecated/mssql.php",
"deprecated/stats.php",
"lib/special_cases.php",
"generated/apache.php",
"generated/apc.php",
"generated/apcu.php",
"generated/array.php",
"generated/bzip2.php",
Expand Down Expand Up @@ -43,14 +48,12 @@
"generated/inotify.php",
"generated/json.php",
"generated/ldap.php",
"generated/libevent.php",
"generated/libxml.php",
"generated/lzf.php",
"generated/mailparse.php",
"generated/mbstring.php",
"generated/misc.php",
"generated/msql.php",
"generated/mssql.php",
"generated/mysql.php",
"generated/mysqli.php",
"generated/mysqlndMs.php",
Expand Down Expand Up @@ -82,7 +85,6 @@
"generated/sqlsrv.php",
"generated/ssdeep.php",
"generated/ssh2.php",
"generated/stats.php",
"generated/stream.php",
"generated/strings.php",
"generated/swoole.php",
Expand All @@ -96,8 +98,7 @@
"generated/yaml.php",
"generated/yaz.php",
"generated/zip.php",
"generated/zlib.php",
"lib/special_cases.php"
"generated/zlib.php"
]
},
"require": {
Expand Down
File renamed without changes.
56 changes: 56 additions & 0 deletions deprecated/functionsList.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?php

return [
'apc_cache_info',
'apc_cas',
'apc_compile_file',
'apc_dec',
'apc_define_constants',
'apc_delete',
'apc_delete_file',
'apc_inc',
'apc_load_constants',
'apc_sma_info',
'event_add',
'event_base_loopbreak',
'event_base_loopexit',
'event_base_new',
'event_base_priority_init',
'event_base_reinit',
'event_base_set',
'event_buffer_base_set',
'event_buffer_disable',
'event_buffer_enable',
'event_buffer_new',
'event_buffer_priority_set',
'event_buffer_set_callback',
'event_buffer_write',
'event_del',
'event_new',
'event_priority_set',
'event_set',
'event_timer_set',
'imagepsencodefont',
'imagepsextendfont',
'imagepsfreefont',
'imagepsslantfont',
'mssql_bind',
'mssql_close',
'mssql_connect',
'mssql_data_seek',
'mssql_field_length',
'mssql_field_name',
'mssql_field_seek',
'mssql_field_type',
'mssql_free_result',
'mssql_free_statement',
'mssql_init',
'mssql_pconnect',
'mssql_query',
'mssql_select_db',
'stats_covariance',
'stats_standard_deviation',
'stats_stat_correlation',
'stats_stat_innerproduct',
'stats_variance',
];
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 6 additions & 2 deletions generated/apache.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function apache_getenv(string $variable, bool $walk_to_top = false): string


/**
* Fetches all HTTP request headers from the current request.
* Fetches all HTTP request headers from the current request. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
*
* @return array An associative array of all the HTTP headers in the current request.
* @throws ApacheException
Expand Down Expand Up @@ -86,7 +88,9 @@ function apache_reset_timeout(): void


/**
* Fetch all HTTP response headers.
* Fetch all HTTP response headers. Works in the
* Apache, FastCGI, CLI, FPM and NSAPI server module
* in Netscape/iPlanet/SunONE webservers.
*
* @return array An array of all Apache response headers on success.
* @throws ApacheException
Expand Down
55 changes: 2 additions & 53 deletions generated/functionsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@
'apcu_fetch',
'apcu_inc',
'apcu_sma_info',
'apc_cache_info',
'apc_cas',
'apc_compile_file',
'apc_dec',
'apc_define_constants',
'apc_delete',
'apc_delete_file',
'apc_fetch',
'apc_inc',
'apc_load_constants',
'apc_sma_info',
'array_combine',
'array_flip',
'array_replace',
Expand Down Expand Up @@ -140,25 +130,6 @@
'eio_utime',
'eio_write',
'error_log',
'event_add',
'event_base_loopbreak',
'event_base_loopexit',
'event_base_new',
'event_base_priority_init',
'event_base_reinit',
'event_base_set',
'event_buffer_base_set',
'event_buffer_disable',
'event_buffer_enable',
'event_buffer_new',
'event_buffer_priority_set',
'event_buffer_set_callback',
'event_buffer_write',
'event_del',
'event_new',
'event_priority_set',
'event_set',
'event_timer_set',
'fastcgi_finish_request',
'fbird_blob_cancel',
'fclose',
Expand Down Expand Up @@ -302,7 +273,6 @@
'imagecreatefromgif',
'imagecreatefromjpeg',
'imagecreatefrompng',
'imagecreatefromstring',
'imagecreatefromwbmp',
'imagecreatefromwebp',
'imagecreatefromxbm',
Expand Down Expand Up @@ -334,10 +304,6 @@
'imageopenpolygon',
'imagepng',
'imagepolygon',
'imagepsencodefont',
'imagepsextendfont',
'imagepsfreefont',
'imagepsslantfont',
'imagerectangle',
'imagerotate',
'imagesavealpha',
Expand Down Expand Up @@ -510,20 +476,6 @@
'msql_pconnect',
'msql_query',
'msql_select_db',
'mssql_bind',
'mssql_close',
'mssql_connect',
'mssql_data_seek',
'mssql_field_length',
'mssql_field_name',
'mssql_field_seek',
'mssql_field_type',
'mssql_free_result',
'mssql_free_statement',
'mssql_init',
'mssql_pconnect',
'mssql_query',
'mssql_select_db',
'mysqli_get_cache_stats',
'mysqli_get_client_stats',
'mysqlnd_ms_dump_servers',
Expand Down Expand Up @@ -674,6 +626,7 @@
'openssl_x509_read',
'output_add_rewrite_var',
'output_reset_rewrite_vars',
'pack',
'parse_ini_file',
'parse_ini_string',
'parse_url',
Expand Down Expand Up @@ -1034,11 +987,6 @@
'ssh2_sftp_rmdir',
'ssh2_sftp_symlink',
'ssh2_sftp_unlink',
'stats_covariance',
'stats_standard_deviation',
'stats_stat_correlation',
'stats_stat_innerproduct',
'stats_variance',
'stream_context_set_params',
'stream_copy_to_stream',
'stream_filter_append',
Expand Down Expand Up @@ -1079,6 +1027,7 @@
'uasort',
'uksort',
'unlink',
'unpack',
'uopz_extend',
'uopz_implement',
'usort',
Expand Down
114 changes: 2 additions & 112 deletions generated/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,30 +809,6 @@ function imagecreatefrompng(string $filename)
}


/**
* imagecreatefromstring returns an image identifier
* representing the image obtained from the given image.
* These types will be automatically detected if your build of PHP supports
* them: JPEG, PNG, GIF, BMP, WBMP, and GD2.
*
* @param string $image A string containing the image data.
* @return resource An image resource will be returned on success. FALSE 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.
* @throws ImageException
*
*/
function imagecreatefromstring(string $image)
{
error_clear_last();
$result = \imagecreatefromstring($image);
if ($result === false) {
throw ImageException::createFromPhpError();
}
return $result;
}


/**
* imagecreatefromwbmp returns an image identifier
* representing the image obtained from the given filename.
Expand Down Expand Up @@ -1891,92 +1867,6 @@ function imagepolygon($image, array $points, int $num_points, int $color): void
}


/**
* Loads a character encoding vector from a file and changes the fonts
* encoding vector to it. As a PostScript fonts default vector lacks most of
* the character positions above 127, you'll definitely want to change this
* if you use a language other than English.
*
* If you find yourself using this function all the time, a much
* better way to define the encoding is to set ps.default_encoding in
* the configuration file
* to point to the right encoding file and all fonts you load will
* automatically have the right encoding.
*
* @param resource $font_index A font resource, returned by imagepsloadfont.
* @param string $encodingfile The exact format of this file is described in T1libs documentation.
* T1lib comes with two ready-to-use files,
* IsoLatin1.enc and
* IsoLatin2.enc.
* @throws ImageException
*
*/
function imagepsencodefont($font_index, string $encodingfile): void
{
error_clear_last();
$result = \imagepsencodefont($font_index, $encodingfile);
if ($result === false) {
throw ImageException::createFromPhpError();
}
}


/**
* Extend or condense a font (font_index), if
* the value of the extend parameter is less
* than one you will be condensing the font.
*
* @param resource $font_index A font resource, returned by imagepsloadfont.
* @param float $extend Extension value, must be greater than 0.
* @throws ImageException
*
*/
function imagepsextendfont($font_index, float $extend): void
{
error_clear_last();
$result = \imagepsextendfont($font_index, $extend);
if ($result === false) {
throw ImageException::createFromPhpError();
}
}


/**
* imagepsfreefont frees memory used by a PostScript
* Type 1 font.
*
* @param resource $font_index A font resource, returned by imagepsloadfont.
* @throws ImageException
*
*/
function imagepsfreefont($font_index): void
{
error_clear_last();
$result = \imagepsfreefont($font_index);
if ($result === false) {
throw ImageException::createFromPhpError();
}
}


/**
* Slant a given font.
*
* @param resource $font_index A font resource, returned by imagepsloadfont.
* @param float $slant Slant level.
* @throws ImageException
*
*/
function imagepsslantfont($font_index, float $slant): void
{
error_clear_last();
$result = \imagepsslantfont($font_index, $slant);
if ($result === false) {
throw ImageException::createFromPhpError();
}
}


/**
* imagerectangle creates a rectangle starting at
* the specified coordinates.
Expand Down Expand Up @@ -2705,7 +2595,7 @@ function imagewebp($image, $to = null, int $quality = 80): void
*
* @param resource $image An image resource, returned by one of the image creation functions,
* such as imagecreatetruecolor.
* @param string|null $filename The path to save the file to. If not set or NULL, the raw image stream will be outputted directly.
* @param string|null $filename The path to save the file to, given as string. If NULL, the raw image stream will be output directly.
*
* The filename (without the .xbm extension) is also
* used for the C identifiers of the XBM, whereby non
Expand All @@ -2719,7 +2609,7 @@ function imagewebp($image, $to = null, int $quality = 80): void
* @throws ImageException
*
*/
function imagexbm($image, ?string $filename = null, int $foreground = null): void
function imagexbm($image, ?string $filename, int $foreground = null): void
{
error_clear_last();
if ($foreground !== null) {
Expand Down
Loading