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
370 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
376 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression")-1)) != N… in make_http_soap_request()
420 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1)) != NUL… in make_http_soap_request()
422 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1)) != NUL… in make_http_soap_request()
433 if (NULL != (tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
452 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL); in make_http_soap_request()
465 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL); in make_http_soap_request()
477 add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL); in make_http_soap_request()
490 if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1)) != NULL && in make_http_soap_request()
500 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
501 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
502 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
511 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
512 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
513 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
519 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy); in make_http_soap_request()
522 add_property_resource(this_ptr, "httpsocket", stream->res); in make_http_soap_request()
524 add_property_long(this_ptr, "_use_proxy", use_proxy); in make_http_soap_request()
530 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL); in make_http_soap_request()
542 add_property_resource(this_ptr, "httpurl", ret); in make_http_soap_request()
588 …((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_keep_alive", sizeof("_keep_alive")-1)) != NULL… in make_http_soap_request()
596 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent")-1)) != N… in make_http_soap_request()
661 if ((login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
666 …if ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) != NULL) { in make_http_soap_request()
699 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
814 …if ((password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != … in make_http_soap_request()
830 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers); in make_http_soap_request()
834 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) != NUL… in make_http_soap_request()
880 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
882 …add_property_stringl(this_ptr, "__last_request_headers", ZSTR_VAL(soap_headers.s), ZSTR_LEN(soap_h… in make_http_soap_request()
893 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1); in make_http_soap_request()
894 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
895 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
896 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL); in make_http_soap_request()
902 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL); in make_http_soap_request()
909 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
910 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
922 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
923 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
924 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL); in make_http_soap_request()
929 if ((trace = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace")-1)) != NULL && in make_http_soap_request()
931 add_property_str(this_ptr, "__last_response_headers", zend_string_copy(http_headers)); in make_http_soap_request()
980 …if ((cookies = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1)) == NUL… in make_http_soap_request()
984 …cookies = zend_hash_str_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies")-1, &tmp_cooki… in make_http_soap_request()
1100 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1101 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1102 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1116 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1); in make_http_soap_request()
1117 zend_hash_str_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1); in make_http_soap_request()
1161 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL); in make_http_soap_request()
1176 … ((digest = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest")-1)) == NULL || in make_http_soap_request()
1178 (login = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login")-1)) != NULL && in make_http_soap_request()
1180 …(password = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password")-1)) != NULL… in make_http_soap_request()
1225 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest")-1, &digest); in make_http_soap_request()
1301 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL); in make_http_soap_request()
1316 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL); in make_http_soap_request()
1350 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL); in make_http_soap_request()