From 908029bbc0e7e504bd03956ba11555bb02cef889 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 21 Mar 2017 11:15:45 +0100 Subject: [PATCH] Fixed Bug #73803 Reflection of ZipArchive does not show public properties --- ext/zip/php_zip.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 03f2184399..394819cf34 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -801,6 +801,9 @@ static void php_zip_register_prop_handler(HashTable *prop_handler, char *name, z hnd.read_const_char_from_obj_func = read_char_from_obj_func; hnd.type = rettype; zend_hash_str_add_mem(prop_handler, name, strlen(name), &hnd, sizeof(zip_prop_handler)); + + /* Register for reflection */ + zend_declare_property_null(zip_class_entry, name, strlen(name), ZEND_ACC_PUBLIC); } /* }}} */ -- 2.50.1