Lines Matching refs:hnd
782 zip_prop_handler hnd; in php_zip_register_prop_handler() local
784 hnd.read_const_char_func = read_char_func; in php_zip_register_prop_handler()
785 hnd.read_int_func = read_int_func; in php_zip_register_prop_handler()
786 hnd.read_const_char_from_obj_func = read_char_from_obj_func; in php_zip_register_prop_handler()
787 hnd.type = rettype; in php_zip_register_prop_handler()
788 zend_hash_str_add_mem(prop_handler, name, strlen(name), &hnd, sizeof(zip_prop_handler)); in php_zip_register_prop_handler()
792 static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd, zval *rv) /* {{{ */ in php_zip_property_reader() argument
799 if (hnd->read_const_char_func) { in php_zip_property_reader()
800 retchar = hnd->read_const_char_func(obj->za, &len); in php_zip_property_reader()
802 if (hnd->read_int_func) { in php_zip_property_reader()
803 retint = hnd->read_int_func(obj->za); in php_zip_property_reader()
809 if (hnd->read_const_char_from_obj_func) { in php_zip_property_reader()
810 retchar = hnd->read_const_char_from_obj_func(obj); in php_zip_property_reader()
817 switch (hnd->type) { in php_zip_property_reader()
845 zip_prop_handler *hnd = NULL; in php_zip_get_property_ptr_ptr() local
858 hnd = zend_hash_find_ptr(obj->prop_handler, Z_STR_P(member)); in php_zip_get_property_ptr_ptr()
861 if (hnd == NULL) { in php_zip_get_property_ptr_ptr()
879 zip_prop_handler *hnd = NULL; in php_zip_read_property() local
892 hnd = zend_hash_find_ptr(obj->prop_handler, Z_STR_P(member)); in php_zip_read_property()
895 if (hnd != NULL) { in php_zip_read_property()
896 retval = php_zip_property_reader(obj, hnd, rv); in php_zip_read_property()
917 zip_prop_handler *hnd = NULL; in php_zip_has_property() local
931 hnd = zend_hash_find_ptr(obj->prop_handler, Z_STR_P(member)); in php_zip_has_property()
934 if (hnd != NULL) { in php_zip_has_property()
939 } else if ((prop = php_zip_property_reader(obj, hnd, &tmp)) != NULL) { in php_zip_has_property()
973 zip_prop_handler *hnd; in php_zip_get_properties() local
983 ZEND_HASH_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) { in php_zip_get_properties()
985 ret = php_zip_property_reader(obj, hnd, &val); in php_zip_get_properties()