Lines Matching refs:SOAP_GLOBAL
297 if (SOAP_GLOBAL(ref_map)) { in soap_check_zval_ref()
301 if (zend_hash_index_find(SOAP_GLOBAL(ref_map), (ulong)data, (void**)&node_ptr) == SUCCESS) { in soap_check_zval_ref()
311 if (SOAP_GLOBAL(soap_version) == SOAP_1_1) { in soap_check_zval_ref()
326 SOAP_GLOBAL(cur_uniq_ref)++; in soap_check_zval_ref()
328 smart_str_append_long(&prefix, SOAP_GLOBAL(cur_uniq_ref)); in soap_check_zval_ref()
343 SOAP_GLOBAL(cur_uniq_ref)++; in soap_check_zval_ref()
345 smart_str_append_long(&prefix, SOAP_GLOBAL(cur_uniq_ref)); in soap_check_zval_ref()
355 …zend_hash_index_update(SOAP_GLOBAL(ref_map), (ulong)data, (void**)&node, sizeof(xmlNodePtr), NULL); in soap_check_zval_ref()
365 if (SOAP_GLOBAL(ref_map) && in soap_find_xml_ref()
366 zend_hash_index_find(SOAP_GLOBAL(ref_map), (ulong)node, (void**)&data_ptr) == SUCCESS) { in soap_find_xml_ref()
378 if (SOAP_GLOBAL(ref_map)) { in soap_check_xml_ref()
379 if (zend_hash_index_find(SOAP_GLOBAL(ref_map), (ulong)node, (void**)&data_ptr) == SUCCESS) { in soap_check_xml_ref()
388 zend_hash_index_update(SOAP_GLOBAL(ref_map), (ulong)node, (void**)data, sizeof(zval*), NULL); in soap_check_xml_ref()
416 enc = get_encoder(SOAP_GLOBAL(sdl), Z_STRVAL_PP(zns), Z_STRVAL_PP(zstype)); in master_to_xml_int()
419 enc = get_encoder_ex(SOAP_GLOBAL(sdl), Z_STRVAL_PP(zstype), Z_STRLEN_PP(zstype)); in master_to_xml_int()
421 if (enc == NULL && SOAP_GLOBAL(typemap)) { in master_to_xml_int()
431 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_xml_int()
450 if (style == SOAP_ENCODED || (SOAP_GLOBAL(sdl) && encode != enc)) { in master_to_xml_int()
472 if (check_class_map && SOAP_GLOBAL(class_map) && data && in master_to_xml_int()
482 for (zend_hash_internal_pointer_reset_ex(SOAP_GLOBAL(class_map), &pos); in master_to_xml_int()
483 zend_hash_get_current_data_ex(SOAP_GLOBAL(class_map), (void **) &tmp, &pos) == SUCCESS; in master_to_xml_int()
484 zend_hash_move_forward_ex(SOAP_GLOBAL(class_map), &pos)) { in master_to_xml_int()
488 …zend_hash_get_current_key_ex(SOAP_GLOBAL(class_map), &type_name, &type_len, &idx, 0, &pos) == HASH… in master_to_xml_int()
492 if (SOAP_GLOBAL(sdl)) { in master_to_xml_int()
493 enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, type_name); in master_to_xml_int()
495 enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), type_name); in master_to_xml_int()
512 if (SOAP_GLOBAL(typemap) && encode->details.type_str) { in master_to_xml_int()
522 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_xml_int()
546 if (SOAP_GLOBAL(typemap)) { in master_to_zval_int()
557 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_zval_int()
580 if (zend_hash_find(SOAP_GLOBAL(typemap), nscat.c, nscat.len + 1, (void**)&new_enc) == SUCCESS) { in master_to_zval_int()
604 encodePtr enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, type_attr->children->content); in master_to_zval()
696 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_string()
699 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_string()
730 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_stringr()
733 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_stringr()
764 if (SOAP_GLOBAL(encoding) != NULL) { in to_zval_stringc()
767 int n = xmlCharEncOutFunc(SOAP_GLOBAL(encoding), out, in); in to_zval_stringc()
892 if (SOAP_GLOBAL(encoding) != NULL) { in to_xml_string()
895 int n = xmlCharEncInFunc(SOAP_GLOBAL(encoding), out, in); in to_xml_string()
1436 (SOAP_GLOBAL(features) & SOAP_SINGLE_ELEMENT_ARRAYS) && in model_to_zval_object()
1490 } else if (SOAP_GLOBAL(class_map) && type->type_str) { in to_zval_object_ex()
1494 …if (zend_hash_find(SOAP_GLOBAL(class_map), type->type_str, strlen(type->type_str)+1, (void**)&clas… in to_zval_object_ex()
1500 sdl = SOAP_GLOBAL(sdl); in to_zval_object_ex()
2302 soap_version = SOAP_GLOBAL(soap_version); in to_xml_array()
2310 if (SOAP_GLOBAL(features) & SOAP_USE_XSI_ARRAY_TYPE) { in to_xml_array()
2414 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, value); in to_xml_array()
2452 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, (*ext)->val); in to_xml_array()
2559 if (SOAP_GLOBAL(features) & SOAP_USE_XSI_ARRAY_TYPE) { in to_xml_array()
2589 sdl = SOAP_GLOBAL(sdl); in to_zval_array()
2607 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2621 enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type); in to_zval_array()
2656 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, type); in to_zval_array()
2672 enc = get_encoder(SOAP_GLOBAL(sdl), (*ext)->ns, (*ext)->val); in to_zval_array()
2924 enc = get_encoder_from_prefix(SOAP_GLOBAL(sdl), data, tmpattr->children->content); in guess_zval_convert()
2966 if (SOAP_GLOBAL(sdl) && type_name && enc->details.sdl_type) { in guess_zval_convert()
3211 if (SOAP_GLOBAL(sdl) && SOAP_GLOBAL(sdl)->elements && data->name) { in to_zval_any()
3222 …if (zend_hash_find(SOAP_GLOBAL(sdl)->elements, nscat.c, nscat.len+1, (void **)&sdl_type) == SUCCES… in to_zval_any()
3537 …if (zend_hash_find(&SOAP_GLOBAL(defEncNs), (char*)ns, strlen(ns) + 1, (void **)&prefix) == SUCCESS… in encode_add_ns()
3541 int num = ++SOAP_GLOBAL(cur_uniq_ns); in encode_add_ns()
3553 num = ++SOAP_GLOBAL(cur_uniq_ns); in encode_add_ns()
3581 SOAP_GLOBAL(cur_uniq_ns) = 0; in encode_reset_ns()
3582 SOAP_GLOBAL(cur_uniq_ref) = 0; in encode_reset_ns()
3583 if (SOAP_GLOBAL(ref_map)) { in encode_reset_ns()
3584 zend_hash_destroy(SOAP_GLOBAL(ref_map)); in encode_reset_ns()
3586 SOAP_GLOBAL(ref_map) = emalloc(sizeof(HashTable)); in encode_reset_ns()
3588 zend_hash_init(SOAP_GLOBAL(ref_map), 0, NULL, NULL, 0); in encode_reset_ns()
3594 SOAP_GLOBAL(cur_uniq_ns) = 0; in encode_finish()
3595 SOAP_GLOBAL(cur_uniq_ref) = 0; in encode_finish()
3596 if (SOAP_GLOBAL(ref_map)) { in encode_finish()
3597 zend_hash_destroy(SOAP_GLOBAL(ref_map)); in encode_finish()
3598 efree(SOAP_GLOBAL(ref_map)); in encode_finish()
3599 SOAP_GLOBAL(ref_map) = NULL; in encode_finish()
3608 if (zend_hash_index_find(&SOAP_GLOBAL(defEncIndex), encode, (void **)&enc) == FAILURE) { in get_conversion()
3728 enc = get_encoder_ex(SOAP_GLOBAL(sdl), array_type.c, array_type.len); in get_array_type()
3745 if (SOAP_GLOBAL(soap_version) == SOAP_1_2 && in get_type_str()
3748 } else if (SOAP_GLOBAL(soap_version) == SOAP_1_1 && in get_type_str()