Lines Matching refs:this_ptr
35 int proxy_authentication(zval* this_ptr, smart_str* soap_headers) in proxy_authentication() argument
39 …if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_login", sizeof("_proxy_login")-1)) … in proxy_authentication()
46 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_password", sizeof("_proxy_passwo… in proxy_authentication()
63 int basic_authentication(zval* this_ptr, smart_str* soap_headers) in basic_authentication() argument
67 if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in basic_authentication()
69 !zend_hash_str_exists(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) { in basic_authentication()
75 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in basic_authentication()
161 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c… in http_connect() argument
174 …if ((proxy_host = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host")-1… in http_connect()
176 …(proxy_port = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port")-1)) !… in http_connect()
185 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_ti… in http_connect()
197 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method")-1)) != N… in http_connect()
263 proxy_authentication(this_ptr, &soap_headers); in http_connect()
285 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method")-1)) != N… in http_connect()
336 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()
641 if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
646 …if ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) != NULL) { in make_http_soap_request()
675 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
790 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
806 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers); in make_http_soap_request()
810 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) != NUL… in make_http_soap_request()
856 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
858 …add_property_stringl(this_ptr, "__last_request_headers", ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_h… in make_http_soap_request()
869 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
870 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
871 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
872 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL); in make_http_soap_request()
878 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL); in make_http_soap_request()
885 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
886 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
898 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
899 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
900 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL); in make_http_soap_request()
905 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
907 add_property_str(this_ptr, "__last_response_headers", zend_string_copy(http_headers)); in make_http_soap_request()
955 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) == NUL… in make_http_soap_request()
959 …cookies = zend_hash_str_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1, &tmp_cooki… in make_http_soap_request()
1074 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1075 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1076 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1090 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1091 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1134 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL); in make_http_soap_request()
1149 … ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) == NULL || in make_http_soap_request()
1151 (login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
1153 …(password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != NULL… in make_http_soap_request()
1198 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest")-1, &digest); in make_http_soap_request()
1274 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL); in make_http_soap_request()
1289 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL); in make_http_soap_request()
1323 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL); in make_http_soap_request()