Doc #63135 [Opn->Nab]: Additional explanation for [mixed $entries] parameter
| From: | cmb@php.net | Date: | Tue, 14 Jun 2016 14:40:59 +0000 |
| Subject: | Doc #63135 [Opn->Nab]: Additional explanation for [mixed $entries] parameter | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13513@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63135&edit=1
ID: 63135
Updated by: cmb@php.net
Reported by: twilightfog at yahoo dot com
Summary: Additional explanation for [mixed $entries]
parameter
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I think the manual is pretty clear about that:
| entries
| The entries to extract. It accepts either a single entry name or
| an array of names.
So, if an empty array is passed, no entry is extracted.
Previous Comments:
------------------------------------------------------------------------
[2012-09-21 20:19:13] twilightfog at yahoo dot com
Description:
------------
---
From manual page: http://www.php.net/ziparchive.extractto
---
The manual states that the second parameter to the function: [mixed $entries] can be an array.
However, it does not mention that when it is an empty array, nothing will be extracted.
This is a important distinction as the array may be generated dynamically, and without mentioning
this in the documentation the users may expect that an empty array will extract all the entries in
the zip files.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63135&edit=1