From c0a030bf35b5eac2701ba97788f9e49cdbfdf049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 1 Jan 2021 20:14:24 +0100 Subject: [PATCH] Generate zip methodsynopses based on stubs Co-authored-by: Christoph M. Becker Closes GH-302. --- reference/zip/functions/zip-entry-close.xml | 5 +- .../functions/zip-entry-compressedsize.xml | 5 +- .../functions/zip-entry-compressionmethod.xml | 5 +- .../zip/functions/zip-entry-filesize.xml | 5 +- reference/zip/functions/zip-entry-name.xml | 5 +- reference/zip/functions/zip-entry-open.xml | 9 +- reference/zip/functions/zip-entry-read.xml | 7 +- reference/zip/functions/zip-read.xml | 3 +- reference/zip/ziparchive/addfile.xml | 9 +- reference/zip/ziparchive/addfromstring.xml | 5 +- reference/zip/ziparchive/addglob.xml | 4 +- reference/zip/ziparchive/addpattern.xml | 4 +- reference/zip/ziparchive/extractto.xml | 9 +- .../zip/ziparchive/getarchivecomment.xml | 3 +- reference/zip/ziparchive/getcommentindex.xml | 3 +- reference/zip/ziparchive/getcommentname.xml | 3 +- .../ziparchive/getexternalattributesname.xml | 8 +- reference/zip/ziparchive/getfromindex.xml | 7 +- reference/zip/ziparchive/getfromname.xml | 7 +- reference/zip/ziparchive/getnameindex.xml | 3 +- reference/zip/ziparchive/getstatusstring.xml | 11 +- .../iscompressionmethoddupported.xml | 7 +- .../isencryptionmethoddupported.xml | 7 +- reference/zip/ziparchive/locatename.xml | 3 +- reference/zip/ziparchive/open.xml | 136 +++++++----------- reference/zip/ziparchive/renameindex.xml | 5 +- reference/zip/ziparchive/renamename.xml | 5 +- reference/zip/ziparchive/replacefile.xml | 7 +- reference/zip/ziparchive/setcommentindex.xml | 1 - reference/zip/ziparchive/setcommentname.xml | 1 - .../zip/ziparchive/setcompressionindex.xml | 9 +- .../zip/ziparchive/setcompressionname.xml | 9 +- .../zip/ziparchive/setencryptionindex.xml | 28 +++- .../zip/ziparchive/setencryptionname.xml | 29 +++- .../ziparchive/setexternalattributesindex.xml | 8 +- .../ziparchive/setexternalattributesname.xml | 8 +- reference/zip/ziparchive/setmtimeindex.xml | 6 +- reference/zip/ziparchive/setmtimename.xml | 6 +- reference/zip/ziparchive/statindex.xml | 3 +- reference/zip/ziparchive/statname.xml | 3 +- 40 files changed, 188 insertions(+), 213 deletions(-) diff --git a/reference/zip/functions/zip-entry-close.xml b/reference/zip/functions/zip-entry-close.xml index 644b18cba1..0ee6042a7f 100644 --- a/reference/zip/functions/zip-entry-close.xml +++ b/reference/zip/functions/zip-entry-close.xml @@ -10,7 +10,7 @@ &reftitle.description; boolzip_entry_close - resourcezip_entry + resourcezip_ent Closes the specified directory entry. @@ -21,7 +21,7 @@ - zip_entry + zip_ent A directory entry previously opened zip_entry_open. @@ -73,7 +73,6 @@ - - ZipArchive::addGlob @@ -13,7 +12,7 @@ public arrayfalseZipArchive::addGlob stringpattern intflags0 - arrayoptionsarray() + arrayoptions[] Add files from a directory which match the glob pattern. @@ -203,7 +202,6 @@ if ($ret !== TRUE) { - - ZipArchive::addPattern @@ -13,7 +12,7 @@ public arrayfalseZipArchive::addPattern stringpattern stringpath"." - arrayoptionsarray() + arrayoptions[] Add files from a directory which match the regular expression pattern. @@ -94,7 +93,6 @@ if ($ret !== TRUE) { - \ No newline at end of file +--> diff --git a/reference/zip/ziparchive/getfromindex.xml b/reference/zip/ziparchive/getfromindex.xml index 9514d64001..a64e09ba9e 100644 --- a/reference/zip/ziparchive/getfromindex.xml +++ b/reference/zip/ziparchive/getfromindex.xml @@ -10,8 +10,8 @@ public stringfalseZipArchive::getFromIndex intindex - intlength0 - intflags + intlen0 + intflags0 Returns the entry contents using its index. @@ -30,7 +30,7 @@ - length + len The length to be read from the entry. If 0, then the @@ -98,7 +98,6 @@ if ($zip->open('test.zip') === TRUE) { - \ No newline at end of file +--> diff --git a/reference/zip/ziparchive/setexternalattributesname.xml b/reference/zip/ziparchive/setexternalattributesname.xml index 99553bc81b..b315d0011e 100644 --- a/reference/zip/ziparchive/setexternalattributesname.xml +++ b/reference/zip/ziparchive/setexternalattributesname.xml @@ -8,12 +8,11 @@ &reftitle.description; - public bool - ZipArchive::setExternalAttributesName + public boolZipArchive::setExternalAttributesName stringname intopsys intattr - intflags + intflags0 Set the external attributes of an entry defined by its name. @@ -93,7 +92,6 @@ if (is_array($stat) && $zip->open('test.zip', ZipArchive::CREATE) === TRUE) { - \ No newline at end of file +--> diff --git a/reference/zip/ziparchive/setmtimeindex.xml b/reference/zip/ziparchive/setmtimeindex.xml index 277b621275..0b4b374a0b 100644 --- a/reference/zip/ziparchive/setmtimeindex.xml +++ b/reference/zip/ziparchive/setmtimeindex.xml @@ -8,11 +8,10 @@ &reftitle.description; - public bool - ZipArchive::setMtimeIndex + public boolnullZipArchive::setMtimeIndex intindex inttimestamp - intflags + intflags0 Set the modification time of an entry defined by its index. @@ -102,7 +101,6 @@ if ($zip->open('test.zip', ZipArchive::CREATE) === TRUE) { -