|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73803 Reflection of ZipArchive does not show public properties
Submitted: 2016-12-22 16:38 UTC Modified: 2017-03-21 10:17 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: RQuadling at GMail dot com Assigned: remi (profile)
Status: Closed Package: Zip Related
PHP Version: 7.0.14 OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:


 [2016-12-22 16:38 UTC] RQuadling at GMail dot com
The ZipArchive class has 5 public properties (as documented in

But these are not visible via reflection.

Test script:
php --re ZipArchive | grep Properties

Expected result:
  - Properties [5] {

Actual result:
  - Properties [0] {


eeiofvbw (last revision 2017-01-16 16:02 UTC by sample at email dot tst)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-22 16:39 UTC] 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-30 13:54 UTC]
-Status: Open +Status: Verified -Package: zip +Package: Zip Related
 [2017-03-21 10:17 UTC]
Automatic comment on behalf of remi
Log: Fixed Bug #73803 Reflection of ZipArchive does not show public properties
 [2017-03-21 10:17 UTC]
-Status: Verified +Status: Closed
 [2017-03-21 10:17 UTC]
-Assigned To: +Assigned To: remi
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Jan 18 17:03:14 2022 UTC