Lines Matching refs:this_ptr
31 int proxy_authentication(zval* this_ptr, smart_str* soap_headers) in proxy_authentication() argument
33 zval *login = Z_CLIENT_PROXY_LOGIN_P(this_ptr); in proxy_authentication()
39 zval *password = Z_CLIENT_PROXY_PASSWORD_P(this_ptr); in proxy_authentication()
56 int basic_authentication(zval* this_ptr, smart_str* soap_headers) in basic_authentication() argument
58 zval *login = Z_CLIENT_LOGIN_P(this_ptr); in basic_authentication()
59 zval *use_digest = Z_CLIENT_USE_DIGEST_P(this_ptr); in basic_authentication()
65 zval *password = Z_CLIENT_PASSWORD_P(this_ptr); in basic_authentication()
165 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c… in http_connect() argument
178 zval *proxy_host = Z_CLIENT_PROXY_HOST_P(this_ptr); in http_connect()
179 zval *proxy_port = Z_CLIENT_PROXY_PORT_P(this_ptr); in http_connect()
189 tmp = Z_CLIENT_CONNECTION_TIMEOUT_P(this_ptr); in http_connect()
201 tmp = Z_CLIENT_SSL_METHOD_P(this_ptr); in http_connect()
267 proxy_authentication(this_ptr, &soap_headers); in http_connect()
289 tmp = Z_CLIENT_SSL_METHOD_P(this_ptr); in http_connect()
338 int make_http_soap_request(zval *this_ptr, in make_http_soap_request() argument
372 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
378 tmp = Z_CLIENT_COMPRESSION_P(this_ptr); in make_http_soap_request()
423 tmp = Z_CLIENT_HTTPSOCKET_P(this_ptr); in make_http_soap_request()
426 tmp = Z_CLIENT_USE_PROXY_P(this_ptr); in make_http_soap_request()
438 tmp = Z_CLIENT_STREAM_CONTEXT_P(this_ptr); in make_http_soap_request()
457 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL); in make_http_soap_request()
471 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL); in make_http_soap_request()
484 add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL); in make_http_soap_request()
498 tmp = Z_CLIENT_HTTPURL_P(this_ptr); in make_http_soap_request()
509 convert_to_null(Z_CLIENT_HTTPURL_P(this_ptr)); in make_http_soap_request()
510 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
511 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
520 convert_to_null(Z_CLIENT_HTTPURL_P(this_ptr)); in make_http_soap_request()
521 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
522 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
528 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy); in make_http_soap_request()
531 ZVAL_RES(Z_CLIENT_HTTPSOCKET_P(this_ptr), stream->res); in make_http_soap_request()
533 ZVAL_LONG(Z_CLIENT_USE_PROXY_P(this_ptr), use_proxy); in make_http_soap_request()
539 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL); in make_http_soap_request()
548 bool client_trace = Z_TYPE_P(Z_CLIENT_TRACE_P(this_ptr)) == IS_TRUE; in make_http_soap_request()
553 zval *url_zval = Z_CLIENT_HTTPURL_P(this_ptr); in make_http_soap_request()
603 if (!http_1_1 || Z_TYPE_P(Z_CLIENT_KEEP_ALIVE_P(this_ptr)) == IS_FALSE) { in make_http_soap_request()
610 tmp = Z_CLIENT_USER_AGENT_P(this_ptr); in make_http_soap_request()
675 login = Z_CLIENT_LOGIN_P(this_ptr); in make_http_soap_request()
677 zval *digest = Z_CLIENT_DIGEST_P(this_ptr); in make_http_soap_request()
689 convert_to_null(Z_CLIENT_HTTPURL_P(this_ptr)); in make_http_soap_request()
690 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
691 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
718 password = Z_CLIENT_PASSWORD_P(this_ptr); in make_http_soap_request()
832 password = Z_CLIENT_PASSWORD_P(this_ptr); in make_http_soap_request()
848 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers); in make_http_soap_request()
852 cookies = Z_CLIENT_COOKIES_P(this_ptr); in make_http_soap_request()
893 zval_ptr_dtor(Z_CLIENT_LAST_REQUEST_HEADERS_P(this_ptr)); in make_http_soap_request()
895 ZVAL_STRINGL(Z_CLIENT_LAST_REQUEST_HEADERS_P(this_ptr), in make_http_soap_request()
907 convert_to_null(Z_CLIENT_HTTPURL_P(this_ptr)); in make_http_soap_request()
908 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
909 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
910 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL); in make_http_soap_request()
917 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL); in make_http_soap_request()
932 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
933 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
934 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL); in make_http_soap_request()
941 zval_ptr_dtor(Z_CLIENT_LAST_RESPONSE_HEADERS_P(this_ptr)); in make_http_soap_request()
942 ZVAL_STR_COPY(Z_CLIENT_LAST_RESPONSE_HEADERS_P(this_ptr), http_headers); in make_http_soap_request()
988 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
989 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
1006 zval *cookies = Z_CLIENT_COOKIES_P(this_ptr); in make_http_soap_request()
1121 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
1122 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
1123 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1137 convert_to_null(Z_CLIENT_HTTPSOCKET_P(this_ptr)); in make_http_soap_request()
1138 convert_to_null(Z_CLIENT_USE_PROXY_P(this_ptr)); in make_http_soap_request()
1182 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL); in make_http_soap_request()
1193 zval *digest = Z_CLIENT_DIGEST_P(this_ptr); in make_http_soap_request()
1194 zval *login = Z_CLIENT_LOGIN_P(this_ptr); in make_http_soap_request()
1195 zval *password = Z_CLIENT_PASSWORD_P(this_ptr); in make_http_soap_request()
1241 zval_ptr_dtor(Z_CLIENT_DIGEST_P(this_ptr)); in make_http_soap_request()
1242 ZVAL_COPY_VALUE(Z_CLIENT_DIGEST_P(this_ptr), &digest); in make_http_soap_request()
1320 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL); in make_http_soap_request()
1335 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL); in make_http_soap_request()
1369 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL); in make_http_soap_request()