Lines Matching refs:tmp

388 			xmlAttrPtr tmp = get_attribute(trav->properties, "location");  in load_wsdl_ex()  local
389 if (tmp) { in load_wsdl_ex()
394 uri = xmlBuildURI(tmp->children->content, trav->doc->URL); in load_wsdl_ex()
396 uri = xmlBuildURI(tmp->children->content, base); in load_wsdl_ex()
451 xmlAttrPtr tmp; in wsdl_soap_binding_header() local
456 tmp = get_attribute(header->properties, "message"); in wsdl_soap_binding_header()
457 if (!tmp) { in wsdl_soap_binding_header()
461 ctype = strrchr((char*)tmp->children->content,':'); in wsdl_soap_binding_header()
463 ctype = (char*)tmp->children->content; in wsdl_soap_binding_header()
468 soap_error1(E_ERROR, "Parsing WSDL: Missing <message> with name '%s'", tmp->children->content); in wsdl_soap_binding_header()
471 tmp = get_attribute(header->properties, "part"); in wsdl_soap_binding_header()
472 if (!tmp) { in wsdl_soap_binding_header()
475 …part = get_node_with_attribute_ex((*message)->children, "part", WSDL_NAMESPACE, "name", (char*)tmp in wsdl_soap_binding_header()
477 soap_error1(E_ERROR, "Parsing WSDL: Missing part '%s' in <message>", tmp->children->content); in wsdl_soap_binding_header()
482 h->name = estrdup((char*)tmp->children->content); in wsdl_soap_binding_header()
484 tmp = get_attribute(header->properties, "use"); in wsdl_soap_binding_header()
485 if (tmp && !strncmp((char*)tmp->children->content, "encoded", sizeof("encoded"))) { in wsdl_soap_binding_header()
491 tmp = get_attribute(header->properties, "namespace"); in wsdl_soap_binding_header()
492 if (tmp) { in wsdl_soap_binding_header()
493 h->ns = estrdup((char*)tmp->children->content); in wsdl_soap_binding_header()
497 tmp = get_attribute(header->properties, "encodingStyle"); in wsdl_soap_binding_header()
498 if (tmp) { in wsdl_soap_binding_header()
499 …if (strncmp((char*)tmp->children->content, SOAP_1_1_ENC_NAMESPACE, sizeof(SOAP_1_1_ENC_NAMESPACE))… in wsdl_soap_binding_header()
501 …} else if (strncmp((char*)tmp->children->content, SOAP_1_2_ENC_NAMESPACE, sizeof(SOAP_1_2_ENC_NAME… in wsdl_soap_binding_header()
504 soap_error1(E_ERROR, "Parsing WSDL: Unknown encodingStyle '%s'", tmp->children->content); in wsdl_soap_binding_header()
511 tmp = get_attribute(part->properties, "type"); in wsdl_soap_binding_header()
512 if (tmp != NULL) { in wsdl_soap_binding_header()
513 h->encode = get_encoder_from_prefix(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
515 tmp = get_attribute(part->properties, "element"); in wsdl_soap_binding_header()
516 if (tmp != NULL) { in wsdl_soap_binding_header()
517 h->element = get_element(ctx->sdl, part, tmp->children->content); in wsdl_soap_binding_header()
564 xmlAttrPtr tmp; in wsdl_soap_binding_body() local
571 tmp = get_attribute(body->properties, "use"); in wsdl_soap_binding_body()
572 if (tmp && !strncmp((char*)tmp->children->content, "literal", sizeof("literal"))) { in wsdl_soap_binding_body()
578 tmp = get_attribute(body->properties, "namespace"); in wsdl_soap_binding_body()
579 if (tmp) { in wsdl_soap_binding_body()
580 binding->ns = estrdup((char*)tmp->children->content); in wsdl_soap_binding_body()
583 tmp = get_attribute(body->properties, "parts"); in wsdl_soap_binding_body()
584 if (tmp) { in wsdl_soap_binding_body()
586 char *parts = (char*)tmp->children->content; in wsdl_soap_binding_body()
625 tmp = get_attribute(body->properties, "encodingStyle"); in wsdl_soap_binding_body()
626 if (tmp) { in wsdl_soap_binding_body()
627 …if (strncmp((char*)tmp->children->content, SOAP_1_1_ENC_NAMESPACE, sizeof(SOAP_1_1_ENC_NAMESPACE))… in wsdl_soap_binding_body()
629 …} else if (strncmp((char*)tmp->children->content, SOAP_1_2_ENC_NAMESPACE, sizeof(SOAP_1_2_ENC_NAME… in wsdl_soap_binding_body()
632 soap_error1(E_ERROR, "Parsing WSDL: Unknown encodingStyle '%s'", tmp->children->content); in wsdl_soap_binding_body()
666 xmlNodePtr trav, part, message = NULL, *tmp; in wsdl_message() local
676 if (zend_hash_find(&ctx->messages, ctype, strlen(ctype)+1, (void**)&tmp) != SUCCESS) { in wsdl_message()
679 message = *tmp; in wsdl_message()
755 xmlNodePtr *tmp, service; in load_wsdl() local
759 zend_hash_get_current_data(&ctx.services, (void **)&tmp); in load_wsdl()
760 service = *tmp; in load_wsdl()
843 if (zend_hash_find(&ctx.bindings, ctype, strlen(ctype)+1, (void*)&tmp) != SUCCESS) { in load_wsdl()
846 binding = *tmp; in load_wsdl()
851 xmlAttrPtr tmp; in load_wsdl() local
859 tmp = get_attribute(soapBindingNode->properties, "style"); in load_wsdl()
860 if (tmp && !strncmp((char*)tmp->children->content, "rpc", sizeof("rpc"))) { in load_wsdl()
864 tmp = get_attribute(soapBindingNode->properties, "transport"); in load_wsdl()
865 if (tmp) { in load_wsdl()
866 …if (strncmp((char*)tmp->children->content, WSDL_HTTP_TRANSPORT, sizeof(WSDL_HTTP_TRANSPORT)) == 0)… in load_wsdl()
898 if (zend_hash_find(&ctx.portTypes, ctype, strlen(ctype)+1, (void**)&tmp) != SUCCESS) { in load_wsdl()
901 portType = *tmp; in load_wsdl()
954 xmlAttrPtr tmp; in load_wsdl() local
963 tmp = get_attribute(soapOperation->properties, "soapAction"); in load_wsdl()
964 if (tmp) { in load_wsdl()
965 soapFunctionBinding->soapAction = estrdup((char*)tmp->children->content); in load_wsdl()
968 tmp = get_attribute(soapOperation->properties, "style"); in load_wsdl()
969 if (tmp) { in load_wsdl()
970 if (!strncmp((char*)tmp->children->content, "rpc", sizeof("rpc"))) { in load_wsdl()
1081 xmlAttrPtr tmp; in load_wsdl() local
1087 tmp = get_attribute(trav->properties, "use"); in load_wsdl()
1088 if (tmp && !strncmp((char*)tmp->children->content, "encoded", sizeof("encoded"))) { in load_wsdl()
1094 tmp = get_attribute(trav->properties, "namespace"); in load_wsdl()
1095 if (tmp) { in load_wsdl()
1096 binding->ns = estrdup((char*)tmp->children->content); in load_wsdl()
1100 tmp = get_attribute(trav->properties, "encodingStyle"); in load_wsdl()
1101 if (tmp) { in load_wsdl()
1102 …if (strncmp((char*)tmp->children->content, SOAP_1_1_ENC_NAMESPACE, sizeof(SOAP_1_1_ENC_NAMESPACE))… in load_wsdl()
1104 …} else if (strncmp((char*)tmp->children->content, SOAP_1_2_ENC_NAMESPACE, sizeof(SOAP_1_2_ENC_NAME… in load_wsdl()
1107 … soap_error1(E_ERROR, "Parsing WSDL: Unknown encodingStyle '%s'", tmp->children->content); in load_wsdl()
1134 char *tmp = estrdup(function->functionName); in load_wsdl() local
1135 int len = strlen(tmp); in load_wsdl()
1137 …if (zend_hash_add(&ctx.sdl->functions, php_strtolower(tmp, len), len+1, &function, sizeof(sdlFunct… in load_wsdl()
1140 efree(tmp); in load_wsdl()
1146 tmp = estrdup(function->requestName); in load_wsdl()
1147 len = strlen(tmp); in load_wsdl()
1148 …zend_hash_add(ctx.sdl->requests, php_strtolower(tmp, len), len+1, &function, sizeof(sdlFunctionPtr… in load_wsdl()
1149 efree(tmp); in load_wsdl()
1467 sdlSoapBindingFunctionHeaderPtr tmp = emalloc(sizeof(sdlSoapBindingFunctionHeader)); in sdl_deserialize_soap_body() local
1468 memset(tmp, 0, sizeof(sdlSoapBindingFunctionHeader)); in sdl_deserialize_soap_body()
1469 sdl_deserialize_key(body->headers, tmp, in); in sdl_deserialize_soap_body()
1470 WSDL_CACHE_GET_1(tmp->use, sdlEncodingUse, in); in sdl_deserialize_soap_body()
1471 if (tmp->use == SOAP_ENCODED) { in sdl_deserialize_soap_body()
1472 WSDL_CACHE_GET_1(tmp->encodingStyle, sdlRpcEncodingStyle, in); in sdl_deserialize_soap_body()
1474 tmp->encodingStyle = SOAP_ENCODING_DEFAULT; in sdl_deserialize_soap_body()
1476 tmp->name = sdl_deserialize_string(in); in sdl_deserialize_soap_body()
1477 tmp->ns = sdl_deserialize_string(in); in sdl_deserialize_soap_body()
1479 tmp->encode = encoders[n]; in sdl_deserialize_soap_body()
1481 tmp->element = types[n]; in sdl_deserialize_soap_body()
1485 tmp->headerfaults = emalloc(sizeof(HashTable)); in sdl_deserialize_soap_body()
1486 zend_hash_init(tmp->headerfaults, i, NULL, delete_header, 0); in sdl_deserialize_soap_body()
1490 sdl_deserialize_key(tmp->headerfaults, tmp2, in); in sdl_deserialize_soap_body()
1859 sdlExtraAttributePtr *tmp; in sdl_serialize_attribute() local
1861 while (zend_hash_get_current_data(attr->extraAttributes, (void**)&tmp) == SUCCESS) { in sdl_serialize_attribute()
1863 sdl_serialize_string((*tmp)->ns, out); in sdl_serialize_attribute()
1864 sdl_serialize_string((*tmp)->val, out); in sdl_serialize_attribute()
1882 sdlContentModelPtr *tmp; in sdl_serialize_model() local
1887 while (zend_hash_get_current_data(model->u.content, (void**)&tmp) == SUCCESS) { in sdl_serialize_model()
1888 sdl_serialize_model(*tmp, tmp_types, tmp_elements, out); in sdl_serialize_model()
1961 sdlRestrictionCharPtr *tmp; in sdl_serialize_type() local
1964 while (zend_hash_get_current_data(type->restrictions->enumeration, (void**)&tmp) == SUCCESS) { in sdl_serialize_type()
1965 sdl_serialize_resriction_char(*tmp, out); in sdl_serialize_type()
1980 sdlTypePtr *tmp; in sdl_serialize_type() local
1986 while (zend_hash_get_current_data(type->elements, (void**)&tmp) == SUCCESS) { in sdl_serialize_type()
1988 sdl_serialize_type(*tmp, tmp_encoders, tmp_types, out); in sdl_serialize_type()
1989 zend_hash_add(tmp_elements, (char*)tmp, sizeof(*tmp), &i, sizeof(int), NULL); in sdl_serialize_type()
2002 sdlAttributePtr *tmp; in sdl_serialize_type() local
2004 while (zend_hash_get_current_data(type->attributes, (void**)&tmp) == SUCCESS) { in sdl_serialize_type()
2006 sdl_serialize_attribute(*tmp, tmp_encoders, out); in sdl_serialize_type()
2041 sdlParamPtr *tmp; in sdl_serialize_parameters() local
2044 while (zend_hash_get_current_data(ht, (void**)&tmp) == SUCCESS) { in sdl_serialize_parameters()
2046 sdl_serialize_string((*tmp)->paramName, out); in sdl_serialize_parameters()
2047 WSDL_CACHE_PUT_INT((*tmp)->order, out); in sdl_serialize_parameters()
2048 sdl_serialize_encoder_ref((*tmp)->encode, tmp_encoders, out); in sdl_serialize_parameters()
2049 sdl_serialize_type_ref((*tmp)->element, tmp_types, out); in sdl_serialize_parameters()
2071 sdlSoapBindingFunctionHeaderPtr *tmp; in sdl_serialize_soap_body() local
2073 while (zend_hash_get_current_data(body->headers, (void**)&tmp) == SUCCESS) { in sdl_serialize_soap_body()
2075 WSDL_CACHE_PUT_1((*tmp)->use, out); in sdl_serialize_soap_body()
2076 if ((*tmp)->use == SOAP_ENCODED) { in sdl_serialize_soap_body()
2077 WSDL_CACHE_PUT_1((*tmp)->encodingStyle, out); in sdl_serialize_soap_body()
2079 sdl_serialize_string((*tmp)->name, out); in sdl_serialize_soap_body()
2080 sdl_serialize_string((*tmp)->ns, out); in sdl_serialize_soap_body()
2081 sdl_serialize_encoder_ref((*tmp)->encode, tmp_encoders, out); in sdl_serialize_soap_body()
2082 sdl_serialize_type_ref((*tmp)->element, tmp_types, out); in sdl_serialize_soap_body()
2083 if ((*tmp)->headerfaults) { in sdl_serialize_soap_body()
2084 j = zend_hash_num_elements((*tmp)->headerfaults); in sdl_serialize_soap_body()
2091 zend_hash_internal_pointer_reset((*tmp)->headerfaults); in sdl_serialize_soap_body()
2092 while (zend_hash_get_current_data((*tmp)->headerfaults, (void**)&tmp2) == SUCCESS) { in sdl_serialize_soap_body()
2093 sdl_serialize_key((*tmp)->headerfaults, out); in sdl_serialize_soap_body()
2102 zend_hash_move_forward((*tmp)->headerfaults); in sdl_serialize_soap_body()
2152 sdlTypePtr *tmp; in add_sdl_to_cache() local
2155 while (zend_hash_get_current_data(sdl->groups, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2156 zend_hash_add(&tmp_types, (char*)tmp, sizeof(*tmp), (void**)&type_num, sizeof(type_num), NULL); in add_sdl_to_cache()
2169 sdlTypePtr *tmp; in add_sdl_to_cache() local
2172 while (zend_hash_get_current_data(sdl->types, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2173 zend_hash_add(&tmp_types, (char*)tmp, sizeof(*tmp), (void**)&type_num, sizeof(type_num), NULL); in add_sdl_to_cache()
2186 sdlTypePtr *tmp; in add_sdl_to_cache() local
2189 while (zend_hash_get_current_data(sdl->elements, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2190 zend_hash_add(&tmp_types, (char*)tmp, sizeof(*tmp), (void**)&type_num, sizeof(type_num), NULL); in add_sdl_to_cache()
2203 encodePtr *tmp; in add_sdl_to_cache() local
2206 while (zend_hash_get_current_data(sdl->encoders, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2207 …zend_hash_add(&tmp_encoders, (char*)tmp, sizeof(*tmp), (void**)&encoder_num, sizeof(encoder_num), … in add_sdl_to_cache()
2220 sdlTypePtr *tmp; in add_sdl_to_cache() local
2222 while (zend_hash_get_current_data(sdl->groups, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2224 sdl_serialize_type(*tmp, &tmp_encoders, &tmp_types, out); in add_sdl_to_cache()
2230 sdlTypePtr *tmp; in add_sdl_to_cache() local
2232 while (zend_hash_get_current_data(sdl->types, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2234 sdl_serialize_type(*tmp, &tmp_encoders, &tmp_types, out); in add_sdl_to_cache()
2240 sdlTypePtr *tmp; in add_sdl_to_cache() local
2242 while (zend_hash_get_current_data(sdl->elements, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2244 sdl_serialize_type(*tmp, &tmp_encoders, &tmp_types, out); in add_sdl_to_cache()
2250 encodePtr *tmp; in add_sdl_to_cache() local
2252 while (zend_hash_get_current_data(sdl->encoders, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2254 sdl_serialize_encoder(*tmp, &tmp_types, out); in add_sdl_to_cache()
2267 sdlBindingPtr *tmp; in add_sdl_to_cache() local
2271 while (zend_hash_get_current_data(sdl->bindings, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2273 sdl_serialize_string((*tmp)->name, out); in add_sdl_to_cache()
2274 sdl_serialize_string((*tmp)->location, out); in add_sdl_to_cache()
2275 WSDL_CACHE_PUT_1((*tmp)->bindingType,out); in add_sdl_to_cache()
2276 if ((*tmp)->bindingType == BINDING_SOAP && (*tmp)->bindingAttributes != NULL) { in add_sdl_to_cache()
2277 sdlSoapBindingPtr binding = (sdlSoapBindingPtr)(*tmp)->bindingAttributes; in add_sdl_to_cache()
2284 …zend_hash_add(&tmp_bindings, (char*)tmp, sizeof(*tmp), (void**)&binding_num, sizeof(binding_num), … in add_sdl_to_cache()
2294 sdlFunctionPtr *tmp; in add_sdl_to_cache() local
2299 while (zend_hash_get_current_data(&sdl->functions, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2301 sdl_serialize_string((*tmp)->functionName, out); in add_sdl_to_cache()
2302 sdl_serialize_string((*tmp)->requestName, out); in add_sdl_to_cache()
2303 sdl_serialize_string((*tmp)->responseName, out); in add_sdl_to_cache()
2305 if ((*tmp)->binding == NULL || in add_sdl_to_cache()
2306 …zend_hash_find(&tmp_bindings,(char*)&(*tmp)->binding,sizeof((*tmp)->binding), (void**)&binding_num… in add_sdl_to_cache()
2310 if ((*tmp)->binding->bindingType == BINDING_SOAP && (*tmp)->bindingAttributes != NULL) { in add_sdl_to_cache()
2311 sdlSoapBindingFunctionPtr binding = (sdlSoapBindingFunctionPtr)(*tmp)->bindingAttributes; in add_sdl_to_cache()
2320 sdl_serialize_parameters((*tmp)->requestParameters, &tmp_encoders, &tmp_types, out); in add_sdl_to_cache()
2321 sdl_serialize_parameters((*tmp)->responseParameters, &tmp_encoders, &tmp_types, out); in add_sdl_to_cache()
2323 if ((*tmp)->faults) { in add_sdl_to_cache()
2326 WSDL_CACHE_PUT_INT(zend_hash_num_elements((*tmp)->faults), out); in add_sdl_to_cache()
2328 zend_hash_internal_pointer_reset((*tmp)->faults); in add_sdl_to_cache()
2329 while (zend_hash_get_current_data((*tmp)->faults, (void**)&fault) == SUCCESS) { in add_sdl_to_cache()
2330 sdl_serialize_key((*tmp)->faults, out); in add_sdl_to_cache()
2333 if ((*tmp)->binding->bindingType == BINDING_SOAP && (*fault)->bindingAttributes != NULL) { in add_sdl_to_cache()
2343 zend_hash_move_forward((*tmp)->faults); in add_sdl_to_cache()
2349 …zend_hash_add(&tmp_functions, (char*)tmp, sizeof(*tmp), (void**)&function_num, sizeof(function_num… in add_sdl_to_cache()
2363 sdlFunctionPtr *tmp; in add_sdl_to_cache() local
2367 while (zend_hash_get_current_data(sdl->requests, (void**)&tmp) == SUCCESS) { in add_sdl_to_cache()
2368 if (zend_hash_find(&tmp_functions, (char*)tmp, sizeof(*tmp), (void**)&function_num) != SUCCESS) { in add_sdl_to_cache()
2412 sdlTypePtr *tmp; in make_persistent_sdl_type_ref() local
2414 if (zend_hash_find(ptr_map, (char *)type, sizeof(sdlTypePtr), (void**)&tmp) == SUCCESS) { in make_persistent_sdl_type_ref()
2415 *type = *tmp; in make_persistent_sdl_type_ref()
2424 encodePtr *tmp; in make_persistent_sdl_encoder_ref() local
2431 if (zend_hash_find(ptr_map, (char *)enc, sizeof(encodePtr), (void**)&tmp) == SUCCESS) { in make_persistent_sdl_encoder_ref()
2432 *enc = *tmp; in make_persistent_sdl_encoder_ref()
2442 sdlSoapBindingFunctionHeaderPtr *tmp, pheader; in make_persistent_sdl_function_headers() local
2453 while (zend_hash_get_current_data(headers, (void**)&tmp) == SUCCESS) { in make_persistent_sdl_function_headers()
2456 *pheader = **tmp; in make_persistent_sdl_function_headers()
2510 sdlParamPtr *tmp, pparam; in make_persistent_sdl_parameters() local
2521 while (zend_hash_get_current_data(params, (void**)&tmp) == SUCCESS) { in make_persistent_sdl_parameters()
2524 *pparam = **tmp; in make_persistent_sdl_parameters()
2559 sdlFaultPtr *tmp, pfault; in make_persistent_sdl_function_faults() local
2568 while (zend_hash_get_current_data(faults, (void**)&tmp) == SUCCESS) { in make_persistent_sdl_function_faults()
2571 *pfault = **tmp; in make_persistent_sdl_function_faults()
2640 sdlExtraAttributePtr *tmp, pextra; in make_persistent_sdl_attribute() local
2646 while (zend_hash_get_current_data(attr->extraAttributes, (void**)&tmp) == SUCCESS) { in make_persistent_sdl_attribute()
2651 if ((*tmp)->ns) { in make_persistent_sdl_attribute()
2652 pextra->ns = strdup((*tmp)->ns); in make_persistent_sdl_attribute()
2654 if ((*tmp)->val) { in make_persistent_sdl_attribute()
2655 pextra->val = strdup((*tmp)->val); in make_persistent_sdl_attribute()
2672 sdlContentModelPtr *tmp, pcontent; in make_persistent_sdl_model() local
2692 while (zend_hash_get_current_data(model->u.content, (void**)&tmp) == SUCCESS) { in make_persistent_sdl_model()
2693 pcontent = make_persistent_sdl_model(*tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_model()
2792 sdlRestrictionCharPtr tmp; in make_persistent_sdl_type() local
2796 …type->restrictions->enumeration, make_persistent_restriction_char, (void*)&tmp, sizeof(sdlRestrict… in make_persistent_sdl_type()
2801 sdlTypePtr *tmp, pelem; in make_persistent_sdl_type() local
2807 while (zend_hash_get_current_data(type->elements, (void **)&tmp) == SUCCESS) { in make_persistent_sdl_type()
2808 pelem = make_persistent_sdl_type(*tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2814 zend_hash_add(ptr_map, (char*)tmp, sizeof(*tmp), (void*)&pelem, sizeof(sdlTypePtr), NULL); in make_persistent_sdl_type()
2820 sdlAttributePtr *tmp, pattr; in make_persistent_sdl_type() local
2826 while (zend_hash_get_current_data(type->attributes, (void **)&tmp) == SUCCESS) { in make_persistent_sdl_type()
2827 pattr = make_persistent_sdl_attribute(*tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2915 sdlBindingPtr *tmp; in make_persistent_sdl_function() local
2917 …if (zend_hash_find(ptr_map, (char*)&pfunc->binding, sizeof(pfunc->binding), (void**)&tmp) == FAILU… in make_persistent_sdl_function()
2920 pfunc->binding = *tmp; in make_persistent_sdl_function()
2974 sdlTypePtr *tmp; in make_persistent_sdl() local
2981 while (zend_hash_get_current_data(sdl->groups, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
2982 ptype = make_persistent_sdl_type(*tmp, &ptr_map, &bp_types, &bp_encoders); in make_persistent_sdl()
2988 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&ptype, sizeof(sdlTypePtr), NULL); in make_persistent_sdl()
2994 sdlTypePtr *tmp; in make_persistent_sdl() local
3001 while (zend_hash_get_current_data(sdl->types, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3002 ptype = make_persistent_sdl_type(*tmp, &ptr_map, &bp_types, &bp_encoders); in make_persistent_sdl()
3008 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&ptype, sizeof(sdlTypePtr), NULL); in make_persistent_sdl()
3014 sdlTypePtr *tmp; in make_persistent_sdl() local
3021 while (zend_hash_get_current_data(sdl->elements, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3022 ptype = make_persistent_sdl_type(*tmp, &ptr_map, &bp_types, &bp_encoders); in make_persistent_sdl()
3028 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&ptype, sizeof(sdlTypePtr), NULL); in make_persistent_sdl()
3034 encodePtr *tmp; in make_persistent_sdl() local
3041 while (zend_hash_get_current_data(sdl->encoders, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3042 penc = make_persistent_sdl_encoder(*tmp, &ptr_map, &bp_types, &bp_encoders); in make_persistent_sdl()
3048 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&penc, sizeof(encodePtr), NULL); in make_persistent_sdl()
3055 sdlTypePtr **tmp, *ptype = NULL; in make_persistent_sdl() local
3058 while (zend_hash_get_current_data(&bp_types, (void**)&tmp) == SUCCESS) { in make_persistent_sdl()
3059 if (zend_hash_find(&ptr_map, (char*)(*tmp), sizeof(**tmp), (void**)&ptype) == FAILURE) { in make_persistent_sdl()
3062 **tmp = *ptype; in make_persistent_sdl()
3067 encodePtr **tmp, *penc = NULL; in make_persistent_sdl() local
3070 while (zend_hash_get_current_data(&bp_encoders, (void**)&tmp) == SUCCESS) { in make_persistent_sdl()
3071 if (zend_hash_find(&ptr_map, (char*)(*tmp), sizeof(**tmp), (void**)&penc) == FAILURE) { in make_persistent_sdl()
3074 **tmp = *penc; in make_persistent_sdl()
3081 sdlBindingPtr *tmp; in make_persistent_sdl() local
3088 while (zend_hash_get_current_data(sdl->bindings, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3089 pbind = make_persistent_sdl_binding(*tmp, &ptr_map); in make_persistent_sdl()
3095 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&pbind, sizeof(sdlBindingPtr), NULL); in make_persistent_sdl()
3102 sdlFunctionPtr *tmp; in make_persistent_sdl() local
3106 while (zend_hash_get_current_data(&sdl->functions, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3107 pfunc = make_persistent_sdl_function(*tmp, &ptr_map); in make_persistent_sdl()
3113 zend_hash_add(&ptr_map, (char*)tmp, sizeof(*tmp), (void*)&pfunc, sizeof(sdlFunctionPtr), NULL); in make_persistent_sdl()
3119 sdlFunctionPtr *tmp; in make_persistent_sdl() local
3126 while (zend_hash_get_current_data(sdl->requests, (void **)&tmp) == SUCCESS) { in make_persistent_sdl()
3127 if (zend_hash_find(&ptr_map, (char*)tmp, sizeof(*tmp), (void**)&preq) == FAILURE) { in make_persistent_sdl()
3130 *tmp = *preq; in make_persistent_sdl()
3153 sdlPtr tmp = p->sdl; in delete_psdl() local
3155 zend_hash_destroy(&tmp->functions); in delete_psdl()
3156 if (tmp->source) { in delete_psdl()
3157 free(tmp->source); in delete_psdl()
3159 if (tmp->target_ns) { in delete_psdl()
3160 free(tmp->target_ns); in delete_psdl()
3162 if (tmp->elements) { in delete_psdl()
3163 zend_hash_destroy(tmp->elements); in delete_psdl()
3164 free(tmp->elements); in delete_psdl()
3166 if (tmp->encoders) { in delete_psdl()
3167 zend_hash_destroy(tmp->encoders); in delete_psdl()
3168 free(tmp->encoders); in delete_psdl()
3170 if (tmp->types) { in delete_psdl()
3171 zend_hash_destroy(tmp->types); in delete_psdl()
3172 free(tmp->types); in delete_psdl()
3174 if (tmp->groups) { in delete_psdl()
3175 zend_hash_destroy(tmp->groups); in delete_psdl()
3176 free(tmp->groups); in delete_psdl()
3178 if (tmp->bindings) { in delete_psdl()
3179 zend_hash_destroy(tmp->bindings); in delete_psdl()
3180 free(tmp->bindings); in delete_psdl()
3182 if (tmp->requests) { in delete_psdl()
3183 zend_hash_destroy(tmp->requests); in delete_psdl()
3184 free(tmp->requests); in delete_psdl()
3186 free(tmp); in delete_psdl()
3196 zval **tmp, **proxy_host, **proxy_port, *orig_context = NULL, *new_context = NULL; in get_sdl() local
3259 "_stream_context", sizeof("_stream_context"), (void**)&tmp)) { in get_sdl()
3260 context = php_stream_context_from_zval(*tmp, 0); in get_sdl()
3265 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent"), (void **) &tmp) ==… in get_sdl()
3266 Z_TYPE_PP(tmp) == IS_STRING && Z_STRLEN_PP(tmp) > 0) { in get_sdl()
3268 smart_str_appends(&headers, Z_STRVAL_PP(tmp)); in get_sdl()
3311 if (php_stream_context_get_option(context, "http", "protocol_version", &tmp) == FAILURE) { in get_sdl()
3424 sdlPtr tmp = (sdlPtr)handle; in delete_sdl_impl() local
3426 zend_hash_destroy(&tmp->functions); in delete_sdl_impl()
3427 if (tmp->source) { in delete_sdl_impl()
3428 efree(tmp->source); in delete_sdl_impl()
3430 if (tmp->target_ns) { in delete_sdl_impl()
3431 efree(tmp->target_ns); in delete_sdl_impl()
3433 if (tmp->elements) { in delete_sdl_impl()
3434 zend_hash_destroy(tmp->elements); in delete_sdl_impl()
3435 efree(tmp->elements); in delete_sdl_impl()
3437 if (tmp->encoders) { in delete_sdl_impl()
3438 zend_hash_destroy(tmp->encoders); in delete_sdl_impl()
3439 efree(tmp->encoders); in delete_sdl_impl()
3441 if (tmp->types) { in delete_sdl_impl()
3442 zend_hash_destroy(tmp->types); in delete_sdl_impl()
3443 efree(tmp->types); in delete_sdl_impl()
3445 if (tmp->groups) { in delete_sdl_impl()
3446 zend_hash_destroy(tmp->groups); in delete_sdl_impl()
3447 efree(tmp->groups); in delete_sdl_impl()
3449 if (tmp->bindings) { in delete_sdl_impl()
3450 zend_hash_destroy(tmp->bindings); in delete_sdl_impl()
3451 efree(tmp->bindings); in delete_sdl_impl()
3453 if (tmp->requests) { in delete_sdl_impl()
3454 zend_hash_destroy(tmp->requests); in delete_sdl_impl()
3455 efree(tmp->requests); in delete_sdl_impl()
3457 efree(tmp); in delete_sdl_impl()
3462 sdlPtr tmp = (sdlPtr)handle; in delete_sdl() local
3464 if (!tmp->is_persistent) { in delete_sdl()
3465 delete_sdl_impl(tmp); in delete_sdl()