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()
46 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_password", sizeof("_proxy_password"), (void **)&… in proxy_authentication()
62 int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) in basic_authentication() argument
66 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS … in basic_authentication()
67 !zend_hash_exists(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"))) { in basic_authentication()
74 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in basic_authentication()
159 static php_stream* http_connect(zval* this_ptr, php_url *phpurl, int use_ssl, php_stream_context *c… in http_connect() argument
171 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host"), (void **) &proxy_h… in http_connect()
173 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port"), (void **) &proxy_port)… in http_connect()
182 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_timeout"), (v… in http_connect()
221 proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in http_connect()
267 int make_http_soap_request(zval *this_ptr, in make_http_soap_request() argument
300 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
307 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression"), (void **)&tmp) == … in make_http_soap_request()
353 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"), (void **)&tmp) == SU… in make_http_soap_request()
355 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy"), (void **)&tmp) == SU… in make_http_soap_request()
366 if (SUCCESS == zend_hash_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
383 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL TSRMLS_CC); in make_http_soap_request()
394 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL … in make_http_soap_request()
404 …add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL TSRMLS_C… in make_http_soap_request()
417 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl"), (void **)&tmp) == SUCCESS … in make_http_soap_request()
427 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
428 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
429 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
438 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
439 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
440 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
446 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy TSRMLS_CC); in make_http_soap_request()
449 add_property_resource(this_ptr, "httpsocket", php_stream_get_resource_id(stream)); in make_http_soap_request()
450 add_property_long(this_ptr, "_use_proxy", use_proxy); in make_http_soap_request()
454 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL TSRMLS_CC); in make_http_soap_request()
466 add_property_resource(this_ptr, "httpurl", ret); in make_http_soap_request()
517 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent"), (void **)&tmp) == … in make_http_soap_request()
563 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS … in make_http_soap_request()
568 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == SUCCE… in make_http_soap_request()
597 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
723 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
739 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in make_http_soap_request()
743 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SU… in make_http_soap_request()
785 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
787 add_property_stringl(this_ptr, "__last_request_headers", soap_headers.c, soap_headers.len, 1); in make_http_soap_request()
796 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
797 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
798 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
799 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL TSRMLS_CC); in make_http_soap_request()
805 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL TSRMLS_CC); in make_http_soap_request()
812 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
813 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); 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()
825 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL TSRMLS_CC); in make_http_soap_request()
830 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
832 add_property_stringl(this_ptr, "__last_response_headers", http_headers, http_header_size, 1); in make_http_soap_request()
880 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == FA… in make_http_soap_request()
884 …zend_hash_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), &tmp_cookies, sizeof(zval … in make_http_soap_request()
997 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
998 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
999 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1011 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
1012 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
1055 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1070 …(zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == FAILURE … in make_http_soap_request()
1072 … zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS && in make_http_soap_request()
1074 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) == SUC… in make_http_soap_request()
1119 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest"), digest TSRMLS_CC); in make_http_soap_request()
1200 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1212 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1246 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL TSRMLS_CC); in make_http_soap_request()