Add missing $flags param to getStream()

This is an alias of getStreamName() but was missing the optional
$flags parameter.
This commit is contained in:
Nikita Popov 2021-10-11 16:01:16 +02:00
parent 1b120b4a59
commit e489e2d388
3 changed files with 4 additions and 6 deletions

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 91ffc3205c6ac7b07953c9446e9cb9988d893dd4 */
* Stub hash: f5566ec4bffa9878e1c5eaba0c2ceeff4435c8d3 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_test_array_return, 0, 0, IS_ARRAY, 0)
ZEND_END_ARG_INFO()

View file

@ -195,7 +195,7 @@ class ZipArchive implements Countable
* @return resource|false
* @alias ZipArchive::getStreamName
*/
public function getStream(string $name) {}
public function getStream(string $name, int $flags = 0) {}
#ifdef ZIP_OPSYS_DEFAULT
/** @tentative-return-type */

View file

@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 214a5d606d5535032251a41d4fa18f47d93ec42e */
* Stub hash: 1c1e7e6e4a9790706f2330f5e4e7e263dc5440e3 */
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
@ -214,9 +214,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getStreamName, 0, 0, 1)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getStream, 0, 0, 1)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_END_ARG_INFO()
#define arginfo_class_ZipArchive_getStream arginfo_class_ZipArchive_getStreamName
#if defined(ZIP_OPSYS_DEFAULT)
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ZipArchive_setExternalAttributesName, 0, 3, _IS_BOOL, 0)