From: Remi Collet Date: Tue, 21 Mar 2017 10:15:45 +0000 (+0100) Subject: Fixed Bug #73803 Reflection of ZipArchive does not show public properties X-Git-Tag: php-7.2.0alpha1~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=908029bbc0e7e504bd03956ba11555bb02cef889;p=php Fixed Bug #73803 Reflection of ZipArchive does not show public properties --- 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); } /* }}} */