mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
for consistency use for all *Name methods
This commit is contained in:
parent
4222ae16e7
commit
dafc72cb33
2 changed files with 9 additions and 11 deletions
|
@ -138,13 +138,13 @@ class ZipArchive
|
|||
public function deleteName(string $name) {}
|
||||
|
||||
/** @return array|false */
|
||||
public function statName(string $filename, int $flags = 0) {}
|
||||
public function statName(string $name, int $flags = 0) {}
|
||||
|
||||
/** @return array|false */
|
||||
public function statIndex(int $index, int $flags = 0) {}
|
||||
|
||||
/** @return int|false */
|
||||
public function locateName(string $filename, int $flags = 0) {}
|
||||
public function locateName(string $name, int $flags = 0) {}
|
||||
|
||||
/** @return string|false */
|
||||
public function getNameIndex(int $index, int $flags = 0) {}
|
||||
|
@ -165,13 +165,13 @@ class ZipArchive
|
|||
public function extractTo(string $pathto, array|string|null $files = null) {}
|
||||
|
||||
/** @return string|false */
|
||||
public function getFromName(string $entryname, int $len = 0, int $flags = 0) {}
|
||||
public function getFromName(string $name, int $len = 0, int $flags = 0) {}
|
||||
|
||||
/** @return string|false */
|
||||
public function getFromIndex(int $index, int $len = 0, int $flags = 0) {}
|
||||
|
||||
/** @return resource|false */
|
||||
public function getStream(string $entryname) {}
|
||||
public function getStream(string $name) {}
|
||||
|
||||
#ifdef ZIP_OPSYS_DEFAULT
|
||||
/** @return bool */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 58d4035ad8d21582e93091d5c14f78640c1a17c3 */
|
||||
* Stub hash: 4ca2b108e71924309abcdc1a0f86f5963a8516f3 */
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_zip_open, 0, 0, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
|
||||
|
@ -157,11 +157,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_deleteName, 0, 0, 1)
|
|||
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
#define arginfo_class_ZipArchive_statName arginfo_class_ZipArchive_open
|
||||
#define arginfo_class_ZipArchive_statName arginfo_class_ZipArchive_getCommentName
|
||||
|
||||
#define arginfo_class_ZipArchive_statIndex arginfo_class_ZipArchive_getCommentIndex
|
||||
|
||||
#define arginfo_class_ZipArchive_locateName arginfo_class_ZipArchive_open
|
||||
#define arginfo_class_ZipArchive_locateName arginfo_class_ZipArchive_getCommentName
|
||||
|
||||
#define arginfo_class_ZipArchive_getNameIndex arginfo_class_ZipArchive_getCommentIndex
|
||||
|
||||
|
@ -179,7 +179,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_extractTo, 0, 0, 1)
|
|||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getFromName, 0, 0, 1)
|
||||
ZEND_ARG_TYPE_INFO(0, entryname, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, len, IS_LONG, 0, "0")
|
||||
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
|
||||
ZEND_END_ARG_INFO()
|
||||
|
@ -190,9 +190,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_getFromIndex, 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, entryname, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
#define arginfo_class_ZipArchive_getStream arginfo_class_ZipArchive_deleteName
|
||||
|
||||
#if defined(ZIP_OPSYS_DEFAULT)
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ZipArchive_setExternalAttributesName, 0, 0, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue