Brotli map and fixes

This commit is contained in:
Dmitrii Kustov 2024-04-14 17:38:41 +03:00 committed by Ivan Fedorov
parent eb8ce42b28
commit e127c5893f
3 changed files with 26 additions and 4 deletions

View File

@ -1400,6 +1400,12 @@ const CLASSES = array (
);
const FUNCTIONS = array (
'Brotli\\compress' => 'brotli/brotli.php',
'Brotli\\compress_add' => 'brotli/brotli.php',
'Brotli\\compress_init' => 'brotli/brotli.php',
'Brotli\\uncompress' => 'brotli/brotli.php',
'Brotli\\uncompress_add' => 'brotli/brotli.php',
'Brotli\\uncompress_init' => 'brotli/brotli.php',
'GEOSLineMerge' => 'geos/geos.php',
'GEOSPolygonize' => 'geos/geos.php',
'GEOSRelateMatch' => 'geos/geos.php',
@ -1788,6 +1794,12 @@ const FUNCTIONS = array (
'bindec' => 'standard/standard_3.php',
'bindtextdomain' => 'gettext/gettext.php',
'boolval' => 'standard/standard_5.php',
'brotli_compress' => 'brotli/brotli.php',
'brotli_compress_add' => 'brotli/brotli.php',
'brotli_compress_init' => 'brotli/brotli.php',
'brotli_uncompress' => 'brotli/brotli.php',
'brotli_uncompress_add' => 'brotli/brotli.php',
'brotli_uncompress_init' => 'brotli/brotli.php',
'bzclose' => 'bz2/bz2.php',
'bzcompress' => 'bz2/bz2.php',
'bzdecompress' => 'bz2/bz2.php',
@ -6432,6 +6444,15 @@ const CONSTANTS = array (
'AppWindow' => 'winbinder/winbinder.php',
'BLACK' => 'winbinder/winbinder.php',
'BLUE' => 'winbinder/winbinder.php',
'BROTLI_COMPRESS_LEVEL_DEFAULT' => 'brotli/brotli.php',
'BROTLI_COMPRESS_LEVEL_MAX' => 'brotli/brotli.php',
'BROTLI_COMPRESS_LEVEL_MIN' => 'brotli/brotli.php',
'BROTLI_FINISH' => 'brotli/brotli.php',
'BROTLI_FLUSH' => 'brotli/brotli.php',
'BROTLI_FONT' => 'brotli/brotli.php',
'BROTLI_GENERIC' => 'brotli/brotli.php',
'BROTLI_PROCESS' => 'brotli/brotli.php',
'BROTLI_TEXT' => 'brotli/brotli.php',
'BUS_ADRALN' => 'pcntl/pcntl.php',
'BUS_ADRERR' => 'pcntl/pcntl.php',
'BUS_OBJERR' => 'pcntl/pcntl.php',

View File

@ -87,7 +87,7 @@ namespace {
* @param string $data The data to compress.
* @param int $mode One of BROTLI_FLUSH (default), BROTLI_PROCESS or BROTLI_FINISH.
*
* @return resource|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
* @return string|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
*/
function brotli_compress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
@ -105,7 +105,7 @@ namespace {
* @param string $data The data to uncompress.
* @param int $mode One of BROTLI_FLUSH (default), BROTLI_PROCESS or BROTLI_FINISH.
*
* @return resource|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
* @return string|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
*/
function brotli_uncompress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
}
@ -152,7 +152,7 @@ namespace Brotli {
* @param string $data The data to compress.
* @param int $mode One of BROTLI_FLUSH (default), BROTLI_PROCESS or BROTLI_FINISH.
*
* @return resource|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
* @return string|false Returns a brotli context resource (brotli.state) on success or FALSE on error.
*/
function compress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
@ -170,7 +170,7 @@ namespace Brotli {
* @param string $data The data to uncompress.
* @param int $mode One of BROTLI_FLUSH (default), BROTLI_PROCESS or BROTLI_FINISH.
*
* @return resource|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
* @return string|false TReturns a brotli context resource (brotli.state) on success or FALSE on error.
*/
function uncompress_add($context, string $data, int $mode = BROTLI_FLUSH): string|false {}
}

View File

@ -95,6 +95,7 @@ class PhpCoreStubsProvider
'PECL' => [
'apcu',
'ast',
'brotli',
'crypto',
'cubrid',
'decimal',