Lines Matching refs:this_ptr

35 int proxy_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC)  in proxy_authentication()  argument
39 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_login", sizeof("_proxy_login"), (void **)&login)… in proxy_authentication()
47 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_password", sizeof("_proxy_password"), (void **)&… in proxy_authentication()
64 int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) in basic_authentication() argument
68 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS … in basic_authentication()
70 !zend_hash_exists(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"))) { in basic_authentication()
77 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in basic_authentication()
163 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c… in http_connect() argument
175 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host"), (void **) &proxy_h… in http_connect()
177 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port"), (void **) &proxy_port)… in http_connect()
186 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_timeout"), (v… in http_connect()
225 proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in http_connect()
271 int make_http_soap_request(zval *this_ptr, in make_http_soap_request() argument
304 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
311 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression"), (void **)&tmp) == … in make_http_soap_request()
357 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"), (void **)&tmp) == SU… in make_http_soap_request()
359 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy"), (void **)&tmp) == SU… in make_http_soap_request()
370 if (SUCCESS == zend_hash_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
387 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL TSRMLS_CC); in make_http_soap_request()
398 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL … in make_http_soap_request()
408 …add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL TSRMLS_C… in make_http_soap_request()
421 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl"), (void **)&tmp) == SUCCESS … in make_http_soap_request()
431 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
432 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
433 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
442 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
443 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
444 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
450 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy TSRMLS_CC); in make_http_soap_request()
453 add_property_resource(this_ptr, "httpsocket", php_stream_get_resource_id(stream)); in make_http_soap_request()
454 add_property_long(this_ptr, "_use_proxy", use_proxy); in make_http_soap_request()
458 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL TSRMLS_CC); in make_http_soap_request()
470 add_property_resource(this_ptr, "httpurl", ret); in make_http_soap_request()
515 …(zend_hash_find(Z_OBJPROP_P(this_ptr), "_keep_alive", sizeof("_keep_alive"), (void **)&tmp) == SUC… in make_http_soap_request()
524 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent"), (void **)&tmp) == … in make_http_soap_request()
570 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS … in make_http_soap_request()
575 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == SUCCE… in make_http_soap_request()
604 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
730 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
746 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in make_http_soap_request()
750 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SU… in make_http_soap_request()
796 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
798 add_property_stringl(this_ptr, "__last_request_headers", soap_headers.c, soap_headers.len, 1); in make_http_soap_request()
807 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
808 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
809 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
810 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL TSRMLS_CC); in make_http_soap_request()
816 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL TSRMLS_CC); in make_http_soap_request()
823 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
824 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
834 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
835 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
836 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL TSRMLS_CC); in make_http_soap_request()
841 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
843 add_property_stringl(this_ptr, "__last_response_headers", http_headers, http_header_size, 1); in make_http_soap_request()
891 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == FA… in make_http_soap_request()
896 …zend_hash_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), &tmp_cookies, sizeof(zval … in make_http_soap_request()
1009 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
1010 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
1011 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1023 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
1024 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
1067 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1082 …(zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == FAILURE … in make_http_soap_request()
1084 … zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS && in make_http_soap_request()
1086 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) == SUC… in make_http_soap_request()
1131 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest"), digest TSRMLS_CC); in make_http_soap_request()
1212 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1224 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1258 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL TSRMLS_CC); in make_http_soap_request()