Lines Matching refs:SOAP_GLOBAL
285 if (SOAP_GLOBAL(ref_map)) { in soap_check_zval_ref()
289 if ((node_ptr = zend_hash_index_find_ptr(SOAP_GLOBAL(ref_map), (zend_ulong)data)) != NULL) { in soap_check_zval_ref()
297 if (SOAP_GLOBAL(soap_version) == SOAP_1_1) { in soap_check_zval_ref()
312 SOAP_GLOBAL(cur_uniq_ref)++; in soap_check_zval_ref()
314 smart_str_append_long(&prefix, SOAP_GLOBAL(cur_uniq_ref)); in soap_check_zval_ref()
329 SOAP_GLOBAL(cur_uniq_ref)++; in soap_check_zval_ref()
331 smart_str_append_long(&prefix, SOAP_GLOBAL(cur_uniq_ref)); in soap_check_zval_ref()
341 zend_hash_index_update_ptr(SOAP_GLOBAL(ref_map), (zend_ulong)data, node); in soap_check_zval_ref()
351 if (SOAP_GLOBAL(ref_map)) { in soap_check_xml_ref()
352 if ((data_ptr = zend_hash_index_find(SOAP_GLOBAL(ref_map), (zend_ulong)node)) != NULL) { in soap_check_xml_ref()
367 if (SOAP_GLOBAL(ref_map)) { in soap_add_xml_ref()
368 zend_hash_index_update(SOAP_GLOBAL(ref_map), (zend_ulong)node, data); in soap_add_xml_ref()
394 enc = get_encoder(SOAP_GLOBAL(sdl), Z_STRVAL_P(zns), Z_STRVAL_P(zstype)); in master_to_xml_int()
397 enc = get_encoder_ex(SOAP_GLOBAL(sdl), Z_STRVAL_P(zstype), Z_STRLEN_P(zstype)); in master_to_xml_int()
399 if (enc == NULL && SOAP_GLOBAL(typemap)) { in master_to_xml_int()
408 enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s); in master_to_xml_int()
421 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
444 if (check_class_map && SOAP_GLOBAL(class_map) && data && in master_to_xml_int()
451 ZEND_HASH_FOREACH_STR_KEY_VAL(SOAP_GLOBAL(class_map), type_name, tmp) { in master_to_xml_int()
460 if (SOAP_GLOBAL(sdl)) { in master_to_xml_int()
461 enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, ZSTR_VAL(type_name)); in master_to_xml_int()
463 enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), ZSTR_VAL(type_name)); in master_to_xml_int()
480 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
490 if ((new_enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s)) != NULL) { in master_to_xml_int()
512 if (SOAP_GLOBAL(typemap)) { in master_to_zval_int()
523 if ((new_enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s)) != NULL) { in master_to_zval_int()
546 if ((new_enc = zend_hash_find_ptr(SOAP_GLOBAL(typemap), nscat.s)) != NULL) { in master_to_zval_int()
570 encodePtr enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, type_attr->children->content); in master_to_zval()
658 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_string()
661 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_string()
691 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_stringr()
694 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_stringr()
724 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_stringc()
727 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_stringc()
845 if (SOAP_GLOBAL(encoding) != NULL) { in to_xml_string()
848 int n = xmlCharEncInFunc(SOAP_GLOBAL(encoding), out, in); in to_xml_string()
1331 (SOAP_GLOBAL(features) & SOAP_SINGLE_ELEMENT_ARRAYS) && in model_to_zval_object()
1380 } else if (SOAP_GLOBAL(class_map) && type->type_str) { in to_zval_object_ex()
1384 …if ((classname = zend_hash_str_find_deref(SOAP_GLOBAL(class_map), type->type_str, strlen(type->typ… in to_zval_object_ex()
1390 sdl = SOAP_GLOBAL(sdl); in to_zval_object_ex()
2177 soap_version = SOAP_GLOBAL(soap_version); in to_xml_array()
2185 if (SOAP_GLOBAL(features) & SOAP_USE_XSI_ARRAY_TYPE) { in to_xml_array()
2277 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, value); in to_xml_array()
2316 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_xml_array()
2419 if (SOAP_GLOBAL(features) & SOAP_USE_XSI_ARRAY_TYPE) { in to_xml_array()
2462 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2476 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2510 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, type); in to_zval_array()
2525 enc = get_encoder(SOAP_GLOBAL(sdl), ext->ns, ext->val); in to_zval_array()
2767 enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, tmpattr->children->content); in guess_zval_convert()
2809 if (SOAP_GLOBAL(sdl) && type_name && enc->details.sdl_type) { in guess_zval_convert()
3061 if (SOAP_GLOBAL(sdl) && SOAP_GLOBAL(sdl)->elements && data->name) { in to_zval_any()
3072 if ((sdl_type = zend_hash_find_ptr(SOAP_GLOBAL(sdl)->elements, nscat.s)) != NULL && in to_zval_any()
3376 if ((prefix = zend_hash_str_find_ptr(&SOAP_GLOBAL(defEncNs), (char*)ns, strlen(ns))) != NULL) { in encode_add_ns()
3380 int num = ++SOAP_GLOBAL(cur_uniq_ns); in encode_add_ns()
3391 num = ++SOAP_GLOBAL(cur_uniq_ns); in encode_add_ns()
3426 SOAP_GLOBAL(cur_uniq_ns) = 0; in encode_reset_ns()
3427 SOAP_GLOBAL(cur_uniq_ref) = 0; in encode_reset_ns()
3428 if (SOAP_GLOBAL(ref_map)) { in encode_reset_ns()
3429 zend_hash_destroy(SOAP_GLOBAL(ref_map)); in encode_reset_ns()
3431 SOAP_GLOBAL(ref_map) = emalloc(sizeof(HashTable)); in encode_reset_ns()
3433 zend_hash_init(SOAP_GLOBAL(ref_map), 0, NULL, NULL, 0); in encode_reset_ns()
3438 SOAP_GLOBAL(cur_uniq_ns) = 0; in encode_finish()
3439 SOAP_GLOBAL(cur_uniq_ref) = 0; in encode_finish()
3440 if (SOAP_GLOBAL(ref_map)) { in encode_finish()
3441 zend_hash_destroy(SOAP_GLOBAL(ref_map)); in encode_finish()
3442 efree(SOAP_GLOBAL(ref_map)); in encode_finish()
3443 SOAP_GLOBAL(ref_map) = NULL; in encode_finish()
3451 if ((enc = zend_hash_index_find_ptr(&SOAP_GLOBAL(defEncIndex), encode)) == NULL) { in get_conversion()
3568 enc = get_encoder_ex(SOAP_GLOBAL(sdl), ZSTR_VAL(array_type.s), ZSTR_LEN(array_type.s)); in get_array_type()
3585 if (SOAP_GLOBAL(soap_version) == SOAP_1_2 && in get_type_str()
3588 } else if (SOAP_GLOBAL(soap_version) == SOAP_1_1 && in get_type_str()