Lines Matching refs:this_ptr

63 static xmlDocPtr serialize_function_call(zval *this_ptr, sdlFunctionPtr function, char *function_na…
795 zval *this_ptr; in PHP_METHOD() local
805 this_ptr = ZEND_THIS; in PHP_METHOD()
806 add_property_stringl(this_ptr, "param_name", name, name_length); in PHP_METHOD()
807 add_property_zval(this_ptr, "param_data", data); in PHP_METHOD()
820 zval *this_ptr; in PHP_METHOD() local
834 this_ptr = ZEND_THIS; in PHP_METHOD()
835 add_property_stringl(this_ptr, "namespace", ns, ns_len); in PHP_METHOD()
836 add_property_stringl(this_ptr, "name", name, name_len); in PHP_METHOD()
838 add_property_zval(this_ptr, "data", data); in PHP_METHOD()
840 add_property_bool(this_ptr, "mustUnderstand", must_understand); in PHP_METHOD()
846 add_property_long(this_ptr, "actor", Z_LVAL_P(actor)); in PHP_METHOD()
848 add_property_stringl(this_ptr, "actor", Z_STRVAL_P(actor), Z_STRLEN_P(actor)); in PHP_METHOD()
861 zval *code = NULL, *details = NULL, *headerfault = NULL, *this_ptr; in PHP_METHOD() local
898 this_ptr = ZEND_THIS; in PHP_METHOD()
899 set_soap_fault(this_ptr, fault_code_ns, fault_code, fault_string, fault_actor, details, name); in PHP_METHOD()
901 add_property_zval(this_ptr, "headerfault", headerfault); in PHP_METHOD()
913 zval *this_ptr; in PHP_METHOD() local
921 this_ptr = ZEND_THIS; in PHP_METHOD()
922 …faultcode = zend_read_property(soap_fault_class_entry, this_ptr, "faultcode", sizeof("faultcode"… in PHP_METHOD()
923 …faultstring = zend_read_property(soap_fault_class_entry, this_ptr, "faultstring", sizeof("faultstr… in PHP_METHOD()
924 file = zend_read_property(soap_fault_class_entry, this_ptr, "file", sizeof("file")-1, 1, &rv3); in PHP_METHOD()
925 line = zend_read_property(soap_fault_class_entry, this_ptr, "line", sizeof("line")-1, 1, &rv4); in PHP_METHOD()
962 zval *data, *type, *this_ptr; in PHP_METHOD() local
970 this_ptr = ZEND_THIS; in PHP_METHOD()
972 add_property_long(this_ptr, "enc_type", UNKNOWN_TYPE); in PHP_METHOD()
975 add_property_long(this_ptr, "enc_type", Z_LVAL_P(type)); in PHP_METHOD()
983 add_property_zval(this_ptr, "enc_value", data); in PHP_METHOD()
987 add_property_stringl(this_ptr, "enc_stype", stype, stype_len); in PHP_METHOD()
990 add_property_stringl(this_ptr, "enc_ns", ns, ns_len); in PHP_METHOD()
993 add_property_stringl(this_ptr, "enc_name", name, name_len); in PHP_METHOD()
996 add_property_stringl(this_ptr, "enc_namens", namens, namens_len); in PHP_METHOD()
1460 static void _soap_server_exception(soapServicePtr service, sdlFunctionPtr function, zval *this_ptr)… in _soap_server_exception() argument
1471 add_soap_fault_ex(&exception_object, this_ptr, "Server", ZSTR_VAL(msg), NULL, NULL); in _soap_server_exception()
1474 add_soap_fault_ex(&exception_object, this_ptr, "Server", "Internal Error", NULL, NULL); in _soap_server_exception()
2285 zval *this_ptr = ZEND_THIS; local
2307 add_property_str(this_ptr, "uri", zend_string_copy(Z_STR_P(tmp)));
2315 add_property_long(this_ptr, "style", Z_LVAL_P(tmp));
2321 add_property_long(this_ptr, "use", Z_LVAL_P(tmp));
2335 add_property_str(this_ptr, "location", zend_string_copy(Z_STR_P(tmp)));
2348 add_property_str(this_ptr, "_login", zend_string_copy(Z_STR_P(tmp)));
2351 add_property_str(this_ptr, "_password", zend_string_copy(Z_STR_P(tmp)));
2356 add_property_null(this_ptr, "_digest");
2361 add_property_str(this_ptr, "_proxy_host", zend_string_copy(Z_STR_P(tmp)));
2367 add_property_long(this_ptr, "_proxy_port", Z_LVAL_P(tmp));
2371 add_property_str(this_ptr, "_proxy_login", zend_string_copy(Z_STR_P(tmp)));
2374 add_property_str(this_ptr, "_proxy_password", zend_string_copy(Z_STR_P(tmp)));
2392 add_property_long(this_ptr, "trace", 1);
2398 add_property_bool(this_ptr, "_exceptions", 0);
2408 add_property_long(this_ptr, "compression", Z_LVAL_P(tmp));
2419 add_property_str(this_ptr, "_encoding", zend_string_copy(Z_STR_P(tmp)));
2424 add_property_zval(this_ptr, "_classmap", tmp);
2435 add_property_long(this_ptr, "_features", Z_LVAL_P(tmp));
2444 add_property_long(this_ptr, "_connection_timeout", Z_LVAL_P(tmp));
2449 add_property_resource(this_ptr, "_stream_context", context->res);
2459 add_property_str(this_ptr, "_user_agent", zend_string_copy(Z_STR_P(tmp)));
2465 add_property_long(this_ptr, "_keep_alive", 0);
2470 add_property_long(this_ptr, "_ssl_method", Z_LVAL_P(tmp));
2476 add_property_long(this_ptr, "_soap_version", soap_version);
2485 sdl = get_sdl(this_ptr, Z_STRVAL_P(wsdl), cache_wsdl);
2488 add_property_resource(this_ptr, "sdl", res);
2499 add_property_resource(this_ptr, "typemap", res);
2506 static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *action, int version, i… argument
2521 add_soap_fault(this_ptr, "HTTP", "Error build soap request", NULL, NULL);
2526 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL &&
2528 add_property_stringl(this_ptr, "__last_request", buf, buf_size);
2546 if (call_user_function(NULL, this_ptr, &func, response, 5, params) != SUCCESS) {
2547 add_soap_fault(this_ptr, "Client", "SoapClient::__doRequest() failed", NULL, NULL);
2561 …} else if ((fault = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "__soap_fault", sizeof("__soap_fault…
2562 …add_soap_fault(this_ptr, "Client", "SoapClient::__doRequest() returned non string value", NULL, NU…
2565 …} else if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL…
2567 add_property_str(this_ptr, "__last_response", zend_string_copy(Z_STR_P(response)));
2580 …if (ret && (fault = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "__soap_fault", sizeof("__soap_fault…
2588 zval* this_ptr, argument
2619 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL &&
2621 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "__last_request", sizeof("__last_request")-1);
2622 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "__last_response", sizeof("__last_response")-1);
2624 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_soap_version", sizeof("_soap_version")-1)) …
2632 if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "location", sizeof("location")-1)) != NULL &&
2638 if (FIND_SDL_PROPERTY(this_ptr,tmp) != NULL) {
2641 if (FIND_TYPEMAP_PROPERTY(this_ptr,tmp) != NULL) {
2645 clear_soap_fault(this_ptr);
2651 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_encoding", sizeof("_encoding")-1)) != NULL …
2658 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_classmap", sizeof("_classmap")-1)) != NULL …
2667 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_features", sizeof("_features")-1)) != NULL …
2692 …request = serialize_function_call(this_ptr, fn, NULL, fnb->input.ns, real_args, arg_count, soap_ve…
2693 … ret = do_request(this_ptr, request, location, fnb->soapAction, soap_version, one_way, &response);
2695 …request = serialize_function_call(this_ptr, fn, NULL, sdl->target_ns, real_args, arg_count, soap_v…
2696 ret = do_request(this_ptr, request, location, NULL, soap_version, one_way, &response);
2704 …ret = parse_packet_soap(this_ptr, Z_STRVAL(response), Z_STRLEN(response), fn, NULL, return_value, …
2716 add_soap_fault(this_ptr, "Client", ZSTR_VAL(error.s), NULL, NULL);
2722 …if ((uri = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "uri", sizeof("uri")-1)) == NULL || Z_TYPE_P(…
2723 add_soap_fault(this_ptr, "Client", "Error finding \"uri\" property", NULL, NULL);
2725 add_soap_fault(this_ptr, "Client", "Error could not find \"location\" property", NULL, NULL);
2730 …request = serialize_function_call(this_ptr, NULL, function, call_uri, real_args, arg_count, soap_v…
2741 ret = do_request(this_ptr, request, location, ZSTR_VAL(action.s), soap_version, 0, &response);
2749 …ret = parse_packet_soap(this_ptr, Z_STRVAL(response), Z_STRLEN(response), NULL, function, return_v…
2759 …if ((fault = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "__soap_fault", sizeof("__soap_fault")-1)) …
2762 add_soap_fault_ex(return_value, this_ptr, "Client", "Unknown Error", NULL, NULL);
2767 …if ((fault = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "__soap_fault", sizeof("__soap_fault")-1)) …
2775 …((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_exceptions", sizeof("_exceptions")-1)) == NULL…
2835 zval *this_ptr; local
2877 this_ptr = ZEND_THIS;
2878 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "__default_headers", sizeof("__default_header…
2915 …do_soap_call(execute_data, this_ptr, function, function_len, arg_count, real_args, return_value, l…
3070 zval *this_ptr = ZEND_THIS; local
3083 if (make_http_soap_request(this_ptr, buf, location, action, version, NULL)) {
3086 } else if (make_http_soap_request(this_ptr, buf, location, action, version,
3104 zval *this_ptr = ZEND_THIS; local
3111 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) != NUL…
3118 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) == NUL…
3123 …cookies = zend_hash_str_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1, &tmp_cooki…
3160 zval *this_ptr = ZEND_THIS; local
3167 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "__default_headers", sizeof("__default_headers")-1);
3170 add_property_zval(this_ptr, "__default_headers", headers);
3178 add_property_zval(this_ptr, "__default_headers", &default_headers);
3198 zval *this_ptr = ZEND_THIS; local
3204 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "location", sizeof("location")-1)) != NULL &&…
3211 add_property_stringl(this_ptr, "location", location, location_len);
3213 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "location", sizeof("location")-1);
4195 static xmlDocPtr serialize_function_call(zval *this_ptr, sdlFunctionPtr function, char *function_na… argument
4247 if ((zstyle = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "style", sizeof("style")-1)) != NULL &&
4270 if ((zuse = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "use", sizeof("use")-1)) != NULL &&