Bug #73803 [Opn->Ver]: Reflection of ZipArchive does not show public properties
| From: | cmb@php.net | Date: | Fri, 30 Dec 2016 13:54:53 +0000 |
| Subject: | Bug #73803 [Opn->Ver]: Reflection of ZipArchive does not show public properties | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206240@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73803&edit=1
ID: 73803
Updated by: cmb@php.net
Reported by: RQuadling at GMail dot com
Summary: Reflection of ZipArchive does not show public
properties
-Status: Open
+Status: Verified
Type: Bug
-Package: zip
+Package: Zip Related
Operating System: n/a
PHP Version: 7.0.14
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-12-22 16:39:53] RQuadling at GMail dot com
As a consequence, using tools like PHPStan on a ZipArchive, you'll get an error like ...
Access to an undefined property ZipArchive::$numFiles.
------------------------------------------------------------------------
[2016-12-22 16:38:03] RQuadling at GMail dot com
Description:
------------
The ZipArchive class has 5 public properties (as documented in http://uk1.php.net/manual/en/class.ziparchive.php).
But these are not visible via reflection.
Test script:
---------------
php --re ZipArchive | grep Properties
Expected result:
----------------
- Properties [5] {
Actual result:
--------------
- Properties [0] {
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73803&edit=1