Lines Matching refs:hnd
832 zip_prop_handler hnd; in php_zip_register_prop_handler() local
835 hnd.read_const_char_func = read_char_func; in php_zip_register_prop_handler()
836 hnd.read_int_func = read_int_func; in php_zip_register_prop_handler()
837 hnd.type = rettype; in php_zip_register_prop_handler()
839 zend_hash_add_mem(prop_handler, str, &hnd, sizeof(zip_prop_handler)); in php_zip_register_prop_handler()
844 static zval *php_zip_property_reader(ze_zip_object *obj, zip_prop_handler *hnd, zval *rv) /* {{{ */ in php_zip_property_reader() argument
850 if (hnd->read_const_char_func) { in php_zip_property_reader()
851 retchar = hnd->read_const_char_func(obj, &len); in php_zip_property_reader()
852 } else if (hnd->read_int_func) { in php_zip_property_reader()
853 retint = hnd->read_int_func(obj); in php_zip_property_reader()
856 switch (hnd->type) { in php_zip_property_reader()
879 zip_prop_handler *hnd = NULL; in php_zip_get_property_ptr_ptr() local
884 hnd = zend_hash_find_ptr(obj->prop_handler, name); in php_zip_get_property_ptr_ptr()
887 if (hnd == NULL) { in php_zip_get_property_ptr_ptr()
899 zip_prop_handler *hnd = NULL; in php_zip_write_property() local
904 hnd = zend_hash_find_ptr(obj->prop_handler, name); in php_zip_write_property()
907 if (hnd != NULL) { in php_zip_write_property()
919 zip_prop_handler *hnd = NULL; in php_zip_read_property() local
924 hnd = zend_hash_find_ptr(obj->prop_handler, name); in php_zip_read_property()
927 if (hnd != NULL) { in php_zip_read_property()
928 retval = php_zip_property_reader(obj, hnd, rv); in php_zip_read_property()
943 zip_prop_handler *hnd = NULL; in php_zip_has_property() local
949 hnd = zend_hash_find_ptr(obj->prop_handler, name); in php_zip_has_property()
952 if (hnd != NULL) { in php_zip_has_property()
957 } else if ((prop = php_zip_property_reader(obj, hnd, &tmp)) != NULL) { in php_zip_has_property()
986 zip_prop_handler *hnd; in php_zip_get_properties() local
996 ZEND_HASH_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) { in php_zip_get_properties()
998 ret = php_zip_property_reader(obj, hnd, &val); in php_zip_get_properties()