summaryrefslogtreecommitdiff
path: root/ext/zip
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2017-03-21 11:15:45 +0100
committerRemi Collet <remi@php.net>2017-03-21 11:15:45 +0100
commit908029bbc0e7e504bd03956ba11555bb02cef889 (patch)
tree8672f2a625d9fc476d2c9ca3c2226c874dfca9b7 /ext/zip
parent4afce8ec8c6660ebd9f9eb174d2614361d1c6129 (diff)
downloadphp-git-908029bbc0e7e504bd03956ba11555bb02cef889.tar.gz
Fixed Bug #73803 Reflection of ZipArchive does not show public properties
Diffstat (limited to 'ext/zip')
-rw-r--r--ext/zip/php_zip.c3
1 files changed, 3 insertions, 0 deletions
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);
}
/* }}} */