summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/zip/php_zip.stub.php8
-rw-r--r--ext/zip/php_zip_arginfo.h12
2 files changed, 9 insertions, 11 deletions
diff --git a/ext/zip/php_zip.stub.php b/ext/zip/php_zip.stub.php
index 7da7bfea39..9a276a05df 100644
--- a/ext/zip/php_zip.stub.php
+++ b/ext/zip/php_zip.stub.php
@@ -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 */
diff --git a/ext/zip/php_zip_arginfo.h b/ext/zip/php_zip_arginfo.h
index 6274f6afef..a4167fa8ca 100644
--- a/ext/zip/php_zip_arginfo.h
+++ b/ext/zip/php_zip_arginfo.h
@@ -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)