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
176 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host"), (void **) &proxy_h… in http_connect()
178 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port"), (void **) &proxy_port)… in http_connect()
187 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_timeout"), (v… in http_connect()
199 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method"), (void **) &tmp) ==… in http_connect()
260 proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in http_connect()
282 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_ssl_method", sizeof("_ssl_method"), (void **) &tmp) ==… in http_connect()
333 int make_http_soap_request(zval *this_ptr, in make_http_soap_request() argument
366 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
373 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression"), (void **)&tmp) == … in make_http_soap_request()
419 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"), (void **)&tmp) == SU… in make_http_soap_request()
421 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy"), (void **)&tmp) == SU… in make_http_soap_request()
432 if (SUCCESS == zend_hash_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
449 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL TSRMLS_CC); in make_http_soap_request()
460 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL … in make_http_soap_request()
470 …add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL TSRMLS_C… in make_http_soap_request()
483 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl"), (void **)&tmp) == SUCCESS … in make_http_soap_request()
493 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
494 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
495 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
504 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
505 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
506 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
512 stream = http_connect(this_ptr, phpurl, use_ssl, context, &use_proxy TSRMLS_CC); in make_http_soap_request()
515 add_property_resource(this_ptr, "httpsocket", php_stream_get_resource_id(stream)); in make_http_soap_request()
516 add_property_long(this_ptr, "_use_proxy", use_proxy); in make_http_soap_request()
520 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL TSRMLS_CC); in make_http_soap_request()
532 add_property_resource(this_ptr, "httpurl", ret); in make_http_soap_request()
577 …(zend_hash_find(Z_OBJPROP_P(this_ptr), "_keep_alive", sizeof("_keep_alive"), (void **)&tmp) == SUC… in make_http_soap_request()
586 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent"), (void **)&tmp) == … in make_http_soap_request()
632 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS … in make_http_soap_request()
637 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == SUCCE… in make_http_soap_request()
666 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
792 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) ==… in make_http_soap_request()
808 has_proxy_authorization = proxy_authentication(this_ptr, &soap_headers TSRMLS_CC); in make_http_soap_request()
812 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == SU… in make_http_soap_request()
858 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
860 add_property_stringl(this_ptr, "__last_request_headers", soap_headers.c, soap_headers.len, 1); in make_http_soap_request()
869 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")); in make_http_soap_request()
870 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
871 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
872 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL TSRMLS_CC); in make_http_soap_request()
878 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL TSRMLS_CC); in make_http_soap_request()
885 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
886 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
896 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
897 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
898 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL TSRMLS_CC); in make_http_soap_request()
903 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "trace", sizeof("trace"), (void **) &trace) == SUCCESS && in make_http_soap_request()
905 add_property_stringl(this_ptr, "__last_response_headers", http_headers, http_header_size, 1); in make_http_soap_request()
953 …if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), (void **)&cookies) == FA… in make_http_soap_request()
958 …zend_hash_update(Z_OBJPROP_P(this_ptr), "_cookies", sizeof("_cookies"), &tmp_cookies, sizeof(zval … in make_http_soap_request()
1071 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
1072 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
1073 …add_soap_fault(this_ptr, "HTTP", "Error Fetching http body, No Content-Length, connection closed o… in make_http_soap_request()
1085 zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")); in make_http_soap_request()
1086 zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")); in make_http_soap_request()
1129 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1144 …(zend_hash_find(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"), (void **)&digest) == FAILURE … in make_http_soap_request()
1146 … zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS && in make_http_soap_request()
1148 …zend_hash_find(Z_OBJPROP_P(this_ptr), "_password", sizeof("_password"), (void **)&password) == SUC… in make_http_soap_request()
1193 add_property_zval_ex(this_ptr, "_digest", sizeof("_digest"), digest TSRMLS_CC); in make_http_soap_request()
1274 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1286 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL TSRMLS_CC); in make_http_soap_request()
1320 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL TSRMLS_CC); in make_http_soap_request()