Bug #73803 [Ver->Csd]: Reflection of ZipArchive does not show public properties

From: Date: Tue, 21 Mar 2017 10:17:09 +0000
Subject: Bug #73803 [Ver->Csd]: Reflection of ZipArchive does not show public properties
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207970@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: remi@php.net Reported by: RQuadling at GMail dot com Summary: Reflection of ZipArchive does not show public properties -Status: Verified +Status: Closed Type: Bug Package: Zip Related Operating System: n/a PHP Version: 7.0.14 Block user comment: N Private report: N New Comment: Automatic comment on behalf of remi Revision: http://git.php.net/?p=php-src.git;a=commit;h=908029bbc0e7e504bd03956ba11555bb02cef889 Log: Fixed Bug #73803 Reflection of ZipArchive does not show public properties 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

« previous php.bugs (#207970) next »