Lines Matching refs:this_ptr
34 int proxy_authentication(zval* this_ptr, smart_str* soap_headers) in proxy_authentication() argument
38 …if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_login", sizeof("_proxy_login")-1)) … in proxy_authentication()
45 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_password", sizeof("_proxy_passwo… in proxy_authentication()
62 int basic_authentication(zval* this_ptr, smart_str* soap_headers) in basic_authentication() argument
66 if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in basic_authentication()
68 !zend_hash_str_exists(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) { in basic_authentication()
74 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in basic_authentication()
160 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c… in http_connect() argument
173 …if ((proxy_host = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host")-1… in http_connect()
175 …(proxy_port = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port")-1)) !… in http_connect()
184 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_ti… in http_connect()
196 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method")-1)) != N… in http_connect()
262 proxy_authentication(this_ptr, &soap_headers); in http_connect()
284 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method")-1)) != N… in http_connect()
335 int make_http_soap_request(zval *this_ptr, in make_http_soap_request() argument
369 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
375 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression")-1)) != N… in make_http_soap_request()
419 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1)) != NUL… in make_http_soap_request()
421 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1)) != NUL… in make_http_soap_request()
432 if (NULL != (tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
451 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL); in make_http_soap_request()
464 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL); in make_http_soap_request()
476 add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL); in make_http_soap_request()
489 if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1)) != NULL && in make_http_soap_request()
499 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
500 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
501 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
510 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
511 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
512 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
518 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy); in make_http_soap_request()
521 add_property_resource(this_ptr, "httpsocket", stream->res); in make_http_soap_request()
523 add_property_long(this_ptr, "_use_proxy", use_proxy); in make_http_soap_request()
529 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL); in make_http_soap_request()
541 add_property_resource(this_ptr, "httpurl", ret); in make_http_soap_request()
587 …((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_keep_alive", sizeof("_keep_alive")-1)) != NULL… in make_http_soap_request()
595 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent")-1)) != N… in make_http_soap_request()
660 if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
665 …if ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) != NULL) { in make_http_soap_request()
675 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
676 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
677 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
703 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
818 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
834 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers); in make_http_soap_request()
838 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) != NUL… in make_http_soap_request()
876 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
878 …add_property_stringl(this_ptr, "__last_request_headers", ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_h… in make_http_soap_request()
889 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
890 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
891 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
892 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL); in make_http_soap_request()
898 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL); in make_http_soap_request()
905 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
906 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
918 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
919 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
920 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL); in make_http_soap_request()
925 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
927 add_property_str(this_ptr, "__last_response_headers", zend_string_copy(http_headers)); in make_http_soap_request()
976 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) == NUL… in make_http_soap_request()
980 …cookies = zend_hash_str_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1, &tmp_cooki… in make_http_soap_request()
1096 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1097 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1098 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1112 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1113 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1157 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL); in make_http_soap_request()
1172 … ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) == NULL || in make_http_soap_request()
1174 (login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
1176 …(password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != NULL… in make_http_soap_request()
1221 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest")-1, &digest); in make_http_soap_request()
1297 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL); in make_http_soap_request()
1312 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL); in make_http_soap_request()
1346 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL); in make_http_soap_request()