Lines Matching refs:ret
96 static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret);
121 zval *ret; \
122 ALLOC_INIT_ZVAL(ret); \
123 ZVAL_NULL(ret); \
124 return ret; \
129 zval *ret; \
130 ALLOC_INIT_ZVAL(ret); \
131 ZVAL_NULL(ret); \
132 return ret; \
544 zval *ret = NULL; in master_to_zval_int() local
588 ret = encode->to_zval(&encode->details, data TSRMLS_CC); in master_to_zval_int()
590 return ret; in master_to_zval_int()
629 xmlNodePtr ret = NULL; in to_xml_user() local
641 ret = xmlDocCopyNode(doc->children, parent->doc, 1); in to_xml_user()
648 if (!ret) { in to_xml_user()
649 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_user()
651 xmlAddChild(parent, ret); in to_xml_user()
653 set_ns_and_type(ret, type); in to_xml_user()
655 return ret; in to_xml_user()
691 zval *ret; in to_zval_string() local
692 MAKE_STD_ZVAL(ret); in to_zval_string()
693 FIND_XML_NULL(data, ret); in to_zval_string()
702 ZVAL_STRING(ret, (char*)xmlBufferContent(out), 1); in to_zval_string()
704 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_string()
709 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_string()
712 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_string()
717 ZVAL_EMPTY_STRING(ret); in to_zval_string()
719 return ret; in to_zval_string()
724 zval *ret; in to_zval_stringr() local
725 MAKE_STD_ZVAL(ret); in to_zval_stringr()
726 FIND_XML_NULL(data, ret); in to_zval_stringr()
736 ZVAL_STRING(ret, (char*)xmlBufferContent(out), 1); in to_zval_stringr()
738 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringr()
743 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringr()
746 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringr()
751 ZVAL_EMPTY_STRING(ret); in to_zval_stringr()
753 return ret; in to_zval_stringr()
758 zval *ret; in to_zval_stringc() local
759 MAKE_STD_ZVAL(ret); in to_zval_stringc()
760 FIND_XML_NULL(data, ret); in to_zval_stringc()
770 ZVAL_STRING(ret, (char*)xmlBufferContent(out), 1); in to_zval_stringc()
772 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringc()
777 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringc()
780 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_stringc()
785 ZVAL_EMPTY_STRING(ret); in to_zval_stringc()
787 return ret; in to_zval_stringc()
792 zval *ret; in to_zval_base64() local
796 MAKE_STD_ZVAL(ret); in to_zval_base64()
797 FIND_XML_NULL(data, ret); in to_zval_base64()
805 ZVAL_STRINGL(ret, str, str_len, 0); in to_zval_base64()
811 ZVAL_STRINGL(ret, str, str_len, 0); in to_zval_base64()
816 ZVAL_EMPTY_STRING(ret); in to_zval_base64()
818 return ret; in to_zval_base64()
823 zval *ret; in to_zval_hexbin() local
828 MAKE_STD_ZVAL(ret); in to_zval_hexbin()
829 FIND_XML_NULL(data, ret); in to_zval_hexbin()
835 return ret; in to_zval_hexbin()
862 ZVAL_STRINGL(ret, (char*)str, str_len, 0); in to_zval_hexbin()
864 ZVAL_EMPTY_STRING(ret); in to_zval_hexbin()
866 return ret; in to_zval_hexbin()
871 xmlNodePtr ret, text; in to_xml_string() local
875 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_string()
876 xmlAddChild(parent, ret); in to_xml_string()
877 FIND_ZVAL_NULL(data, ret, style); in to_xml_string()
948 xmlAddChild(ret, text); in to_xml_string()
952 set_ns_and_type(ret, type); in to_xml_string()
954 return ret; in to_xml_string()
959 xmlNodePtr ret, text; in to_xml_base64() local
963 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_base64()
964 xmlAddChild(parent, ret); in to_xml_base64()
965 FIND_ZVAL_NULL(data, ret, style); in to_xml_base64()
970 xmlAddChild(ret, text); in to_xml_base64()
979 xmlAddChild(ret, text); in to_xml_base64()
985 set_ns_and_type(ret, type); in to_xml_base64()
987 return ret; in to_xml_base64()
993 xmlNodePtr ret, text; in to_xml_hexbin() local
998 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_hexbin()
999 xmlAddChild(parent, ret); in to_xml_hexbin()
1000 FIND_ZVAL_NULL(data, ret, style); in to_xml_hexbin()
1017 xmlAddChild(ret, text); in to_xml_hexbin()
1024 set_ns_and_type(ret, type); in to_xml_hexbin()
1026 return ret; in to_xml_hexbin()
1031 zval *ret; in to_zval_double() local
1032 MAKE_STD_ZVAL(ret); in to_zval_double()
1033 FIND_XML_NULL(data, ret); in to_zval_double()
1043 Z_TYPE_P(ret) = IS_DOUBLE; in to_zval_double()
1044 Z_DVAL_P(ret) = lval; in to_zval_double()
1047 Z_TYPE_P(ret) = IS_DOUBLE; in to_zval_double()
1048 Z_DVAL_P(ret) = dval; in to_zval_double()
1052 ZVAL_DOUBLE(ret, php_get_nan()); in to_zval_double()
1054 ZVAL_DOUBLE(ret, php_get_inf()); in to_zval_double()
1056 ZVAL_DOUBLE(ret, -php_get_inf()); in to_zval_double()
1065 ZVAL_NULL(ret); in to_zval_double()
1067 return ret; in to_zval_double()
1072 zval *ret; in to_zval_long() local
1073 MAKE_STD_ZVAL(ret); in to_zval_long()
1074 FIND_XML_NULL(data, ret); in to_zval_long()
1084 …switch ((Z_TYPE_P(ret) = is_numeric_string((char*)data->children->content, strlen((char*)data->chi… in to_zval_long()
1086 Z_LVAL_P(ret) = lval; in to_zval_long()
1089 Z_DVAL_P(ret) = dval; in to_zval_long()
1098 ZVAL_NULL(ret); in to_zval_long()
1100 return ret; in to_zval_long()
1105 xmlNodePtr ret; in to_xml_long() local
1107 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_long()
1108 xmlAddChild(parent, ret); in to_xml_long()
1109 FIND_ZVAL_NULL(data, ret, style); in to_xml_long()
1115 xmlNodeSetContent(ret, BAD_CAST(s)); in to_xml_long()
1124 xmlNodeSetContentLen(ret, BAD_CAST(Z_STRVAL(tmp)), Z_STRLEN(tmp)); in to_xml_long()
1129 set_ns_and_type(ret, type); in to_xml_long()
1131 return ret; in to_xml_long()
1136 xmlNodePtr ret; in to_xml_double() local
1140 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_double()
1141 xmlAddChild(parent, ret); in to_xml_double()
1142 FIND_ZVAL_NULL(data, ret, style); in to_xml_double()
1152 xmlNodeSetContentLen(ret, BAD_CAST(str), strlen(str)); in to_xml_double()
1156 set_ns_and_type(ret, type); in to_xml_double()
1158 return ret; in to_xml_double()
1163 zval *ret; in to_zval_bool() local
1164 MAKE_STD_ZVAL(ret); in to_zval_bool()
1165 FIND_XML_NULL(data, ret); in to_zval_bool()
1173 ZVAL_BOOL(ret, 1); in to_zval_bool()
1177 ZVAL_BOOL(ret, 0); in to_zval_bool()
1179 ZVAL_STRING(ret, (char*)data->children->content, 1); in to_zval_bool()
1180 convert_to_boolean(ret); in to_zval_bool()
1186 ZVAL_NULL(ret); in to_zval_bool()
1188 return ret; in to_zval_bool()
1193 xmlNodePtr ret; in to_xml_bool() local
1195 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_bool()
1196 xmlAddChild(parent, ret); in to_xml_bool()
1197 FIND_ZVAL_NULL(data, ret, style); in to_xml_bool()
1200 xmlNodeSetContent(ret, BAD_CAST("true")); in to_xml_bool()
1202 xmlNodeSetContent(ret, BAD_CAST("false")); in to_xml_bool()
1206 set_ns_and_type(ret, type); in to_xml_bool()
1208 return ret; in to_xml_bool()
1214 zval *ret; in to_zval_null() local
1215 MAKE_STD_ZVAL(ret); in to_zval_null()
1216 ZVAL_NULL(ret); in to_zval_null()
1217 return ret; in to_zval_null()
1222 xmlNodePtr ret; in to_xml_null() local
1224 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_null()
1225 xmlAddChild(parent, ret); in to_xml_null()
1227 set_xsi_nil(ret); in to_xml_null()
1229 return ret; in to_xml_null()
1295 static void model_to_zval_any(zval *ret, xmlNodePtr node TSRMLS_DC) in model_to_zval_any() argument
1301 if (get_zval_property(ret, (char*)node->name TSRMLS_CC) == NULL) { in model_to_zval_any()
1373 set_zval_property(ret, name ? name : "any", any TSRMLS_CC); in model_to_zval_any()
1377 static void model_to_zval_object(zval *ret, sdlContentModelPtr model, xmlNodePtr data, sdlPtr sdl T… in model_to_zval_object() argument
1445 set_zval_property(ret, model->u.element->name, val TSRMLS_CC); in model_to_zval_object()
1461 model_to_zval_object(ret, *tmp, data, sdl TSRMLS_CC); in model_to_zval_object()
1466 model_to_zval_any(ret, data->children TSRMLS_CC); in model_to_zval_object()
1471 model_to_zval_object(ret, model->u.group->model, data, sdl TSRMLS_CC); in model_to_zval_object()
1481 zval *ret; in to_zval_object_ex() local
1516 ALLOC_INIT_ZVAL(ret); in to_zval_object_ex()
1517 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1518 return ret; in to_zval_object_ex()
1521 object_init_ex(ret, ce); in to_zval_object_ex()
1523 set_zval_property(ret, "_", base TSRMLS_CC); in to_zval_object_ex()
1525 ALLOC_INIT_ZVAL(ret); in to_zval_object_ex()
1526 FIND_XML_NULL(data, ret); in to_zval_object_ex()
1527 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1528 return ret; in to_zval_object_ex()
1530 object_init_ex(ret, ce); in to_zval_object_ex()
1541 if ((ret = soap_find_xml_ref(data TSRMLS_CC)) != NULL) { in to_zval_object_ex()
1542 return ret; in to_zval_object_ex()
1554 ret = to_zval_object_ex(&sdlType->encode->details, data, ce TSRMLS_CC); in to_zval_object_ex()
1556 ret = master_to_zval_int(sdlType->encode, data TSRMLS_CC); in to_zval_object_ex()
1558 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1559 return ret; in to_zval_object_ex()
1561 redo_any = get_zval_property(ret, "any" TSRMLS_CC); in to_zval_object_ex()
1562 if (Z_TYPE_P(ret) == IS_OBJECT && ce != ZEND_STANDARD_CLASS_DEF_PTR) { in to_zval_object_ex()
1563 zend_object *zobj = zend_objects_get_address(ret TSRMLS_CC); in to_zval_object_ex()
1569 ALLOC_INIT_ZVAL(ret); in to_zval_object_ex()
1570 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1571 return ret; in to_zval_object_ex()
1574 object_init_ex(ret, ce); in to_zval_object_ex()
1576 set_zval_property(ret, "_", base TSRMLS_CC); in to_zval_object_ex()
1579 ALLOC_INIT_ZVAL(ret); in to_zval_object_ex()
1580 FIND_XML_NULL(data, ret); in to_zval_object_ex()
1581 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1582 return ret; in to_zval_object_ex()
1584 object_init_ex(ret, ce); in to_zval_object_ex()
1589 unset_zval_property(ret, "any" TSRMLS_CC); in to_zval_object_ex()
1591 model_to_zval_object(ret, sdlType->model, data, sdl TSRMLS_CC); in to_zval_object_ex()
1593 zval *tmp = get_zval_property(ret, "any" TSRMLS_CC); in to_zval_object_ex()
1596 model_to_zval_any(ret, data->children TSRMLS_CC); in to_zval_object_ex()
1633 set_zval_property(ret, (*attr)->name, data TSRMLS_CC); in to_zval_object_ex()
1641 ALLOC_INIT_ZVAL(ret); in to_zval_object_ex()
1642 FIND_XML_NULL(data, ret); in to_zval_object_ex()
1643 if (soap_check_xml_ref(&ret, data TSRMLS_CC)) { in to_zval_object_ex()
1644 return ret; in to_zval_object_ex()
1647 object_init_ex(ret, ce); in to_zval_object_ex()
1657 prop = get_zval_property(ret, (char*)trav->name TSRMLS_CC); in to_zval_object_ex()
1660 set_zval_property(ret, (char*)trav->name, tmpVal TSRMLS_CC); in to_zval_object_ex()
1667 set_zval_property(ret, (char*)trav->name, arr TSRMLS_CC); in to_zval_object_ex()
1679 set_zval_property(ret, (char*)trav->name, arr TSRMLS_CC); in to_zval_object_ex()
1689 return ret; in to_zval_object_ex()
1841 int ret = 0; in model_to_xml_object() local
1849 ret = 1; in model_to_xml_object()
1853 return ret; in model_to_xml_object()
2566 zval *ret; in to_zval_array() local
2578 MAKE_STD_ZVAL(ret); in to_zval_array()
2579 FIND_XML_NULL(data, ret); in to_zval_array()
2721 array_init(ret); in to_zval_array()
2740 ar = ret; in to_zval_array()
2776 return ret; in to_zval_array()
2837 zval *ret, *key, *value; in to_zval_map() local
2840 MAKE_STD_ZVAL(ret); in to_zval_map()
2841 FIND_XML_NULL(data, ret); in to_zval_map()
2844 array_init(ret); in to_zval_map()
2863 …zend_symtable_update(Z_ARRVAL_P(ret), Z_STRVAL_P(key), Z_STRLEN_P(key) + 1, &value, sizeof(zval *)… in to_zval_map()
2865 zend_hash_index_update(Z_ARRVAL_P(ret), Z_LVAL_P(key), &value, sizeof(zval *), NULL); in to_zval_map()
2873 ZVAL_NULL(ret); in to_zval_map()
2875 return ret; in to_zval_map()
2882 xmlNodePtr ret; in guess_xml_convert() local
2889 ret = master_to_xml_int(enc, data, style, parent, 0 TSRMLS_CC); in guess_xml_convert()
2895 return ret; in guess_xml_convert()
2903 zval *ret; in guess_zval_convert() local
2956 ret = master_to_zval_int(enc, data TSRMLS_CC); in guess_zval_convert()
2965 Z_DELREF_P(ret); in guess_zval_convert()
2966 add_property_zval(soapvar, "enc_value", ret); in guess_zval_convert()
2975 ret = soapvar; in guess_zval_convert()
2977 return ret; in guess_zval_convert()
3098 xmlNodePtr ret; in to_xml_list() local
3110 ret = xmlNewNode(NULL, BAD_CAST("BOGUS")); in to_xml_list()
3111 xmlAddChild(parent, ret); in to_xml_list()
3112 FIND_ZVAL_NULL(data, ret, style); in to_xml_list()
3120 xmlNodePtr dummy = master_to_xml(list_enc, *tmp, SOAP_LITERAL, ret TSRMLS_CC); in to_xml_list()
3134 xmlNodeSetContentLen(ret, BAD_CAST(list.c), list.len); in to_xml_list()
3159 dummy = master_to_xml(list_enc, &dummy_zval, SOAP_LITERAL, ret TSRMLS_CC); in to_xml_list()
3174 xmlNodeSetContentLen(ret, BAD_CAST(list.c), list.len); in to_xml_list()
3179 return ret; in to_xml_list()
3200 zval *ret; in to_zval_any() local
3223 MAKE_STD_ZVAL(ret); in to_zval_any()
3224 ZVAL_STRING(ret, (char*)xmlBufferContent(buf), 1); in to_zval_any()
3226 return ret; in to_zval_any()
3231 xmlNodePtr ret = NULL; in to_xml_any() local
3244 ret = master_to_xml(enc, *el, style, parent TSRMLS_CC); in to_xml_any()
3245 if (ret && in to_xml_any()
3246 ret->name != xmlStringTextNoenc && in to_xml_any()
3248 xmlNodeSetName(ret, BAD_CAST(name)); in to_xml_any()
3251 return ret; in to_xml_any()
3254 ret = xmlNewTextLen(BAD_CAST(Z_STRVAL_P(data)), Z_STRLEN_P(data)); in to_xml_any()
3260 ret = xmlNewTextLen(BAD_CAST(Z_STRVAL(tmp)), Z_STRLEN(tmp)); in to_xml_any()
3264 ret->name = xmlStringTextNoenc; in to_xml_any()
3265 ret->parent = parent; in to_xml_any()
3266 ret->doc = parent->doc; in to_xml_any()
3267 ret->prev = parent->last; in to_xml_any()
3268 ret->next = NULL; in to_xml_any()
3270 parent->last->next = ret; in to_xml_any()
3272 parent->children = ret; in to_xml_any()
3274 parent->last = ret; in to_xml_any()
3276 return ret; in to_xml_any()
3346 xmlNodePtr ret = NULL; in sdl_guess_convert_xml() local
3351 ret = guess_xml_convert(enc, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3353 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3355 return ret; in sdl_guess_convert_xml()
3383 ret = master_to_xml(type->encode, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3385 ret = guess_xml_convert(enc, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3389 ret = to_xml_list(enc, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3392 ret = to_xml_union(enc, data, style, parent TSRMLS_CC); in sdl_guess_convert_xml()
3410 set_ns_and_type(ret, enc); in sdl_guess_convert_xml()
3412 return ret; in sdl_guess_convert_xml()
3429 …xmlNodePtr ret = get_node_with_attribute_recursive(data->doc->children, NULL, "id", (char*)&href->… in check_and_resolve_href() local
3430 if (!ret) { in check_and_resolve_href()
3433 return ret; in check_and_resolve_href()
3443 xmlNodePtr ret; in check_and_resolve_href() local
3450 …ret = get_node_with_attribute_recursive_ex(data->doc->children, NULL, NULL, "id", (char*)id, SOAP_… in check_and_resolve_href()
3451 if (!ret) { in check_and_resolve_href()
3453 } else if (ret == data) { in check_and_resolve_href()
3456 return ret; in check_and_resolve_href()
3730 static void get_type_str(xmlNodePtr node, const char* ns, const char* type, smart_str* ret) in get_type_str() argument
3744 smart_str_appends(ret, (char*)xmlns->prefix); in get_type_str()
3745 smart_str_appendc(ret, ':'); in get_type_str()
3747 smart_str_appendl(ret, type, strlen(type)); in get_type_str()
3748 smart_str_0(ret); in get_type_str()