Add stubs for uploadprogress PECL extension

- https://pecl.php.net/package/uploadprogress
- https://github.com/php/pecl-php-uploadprogress

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2022-01-19 16:00:36 -03:00 committed by Ivan Fedorov
parent 7bbd0e2e92
commit f546a3f740
3 changed files with 24 additions and 0 deletions

View File

@ -5454,6 +5454,8 @@ const FUNCTIONS = array (
'uopz_unset_hook' => 'uopz/uopz.php',
'uopz_unset_mock' => 'uopz/uopz.php',
'uopz_unset_return' => 'uopz/uopz.php',
'uploadprogress_get_contents' => 'uploadprogress/uploadprogress.php',
'uploadprogress_get_info' => 'uploadprogress/uploadprogress.php',
'urldecode' => 'standard/standard_2.php',
'urlencode' => 'standard/standard_2.php',
'use_soap_error_handler' => 'soap/soap.php',

View File

@ -142,6 +142,7 @@ class PhpCoreStubsProvider
'svn',
'sync',
'uopz',
'uploadprogress',
'uuid',
'uv',
'winbinder',

View File

@ -0,0 +1,21 @@
<?php
/**
* Stubs for uploadprogress extension
* @link https://pecl.php.net/package/uploadprogress
*/
/**
* @param string $identifier
* @param string $fieldname
* @param int $maxlen
* @return string|null
* @since PECL uploadprogress >= 0.9.0
*/
function uploadprogress_get_contents(string $identifier, string $fieldname, int $maxlen = -1): ?string {}
/**
* @param string $identifier
* @return array|null
* @since PECL uploadprogress >= 0.3.0
*/
function uploadprogress_get_info(string $identifier): ?array {}