Lines Matching refs:tmp

91 	zval *tmp;  in http_context_headers()  local
94 (tmp = php_stream_context_get_option(context, "http", "header")) != NULL && in http_context_headers()
95 Z_TYPE_P(tmp) == IS_STRING && Z_STRLEN_P(tmp)) { in http_context_headers()
96 char *s = Z_STRVAL_P(tmp); in http_context_headers()
157 zval *tmp, ssl_proxy_peer_name; in http_connect() local
178 tmp = Z_CLIENT_CONNECTION_TIMEOUT_P(this_ptr); in http_connect()
179 if (Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) > 0) { in http_connect()
180 tv.tv_sec = Z_LVAL_P(tmp); in http_connect()
190 tmp = Z_CLIENT_SSL_METHOD_P(this_ptr); in http_connect()
191 if (Z_TYPE_P(tmp) == IS_LONG) { in http_connect()
193 switch (Z_LVAL_P(tmp)) { in http_connect()
238 if (!context || (tmp = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { in http_connect()
278 tmp = Z_CLIENT_SSL_METHOD_P(this_ptr); in http_connect()
279 if (Z_TYPE_P(tmp) == IS_LONG) { in http_connect()
280 switch (Z_LVAL_P(tmp)) { in http_connect()
342 zval *tmp; in make_http_soap_request() local
369 tmp = Z_CLIENT_COMPRESSION_P(this_ptr); in make_http_soap_request()
370 if (Z_TYPE_P(tmp) == IS_LONG) { in make_http_soap_request()
371 int level = Z_LVAL_P(tmp) & 0x0f; in make_http_soap_request()
372 int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request()
376 if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { in make_http_soap_request()
414 tmp = Z_CLIENT_HTTPSOCKET_P(this_ptr); in make_http_soap_request()
415 if (Z_TYPE_P(tmp) == IS_RESOURCE) { in make_http_soap_request()
416 php_stream_from_zval_no_verify(stream,tmp); in make_http_soap_request()
417 tmp = Z_CLIENT_USE_PROXY_P(this_ptr); in make_http_soap_request()
418 if (Z_TYPE_P(tmp) == IS_LONG) { in make_http_soap_request()
419 use_proxy = Z_LVAL_P(tmp); in make_http_soap_request()
429 tmp = Z_CLIENT_STREAM_CONTEXT_P(this_ptr); in make_http_soap_request()
430 if (Z_TYPE_P(tmp) == IS_RESOURCE) { in make_http_soap_request()
431 context = php_stream_context_from_zval(tmp, 0); in make_http_soap_request()
435 (tmp = php_stream_context_get_option(context, "http", "max_redirects")) != NULL) { in make_http_soap_request()
436 …if (Z_TYPE_P(tmp) != IS_STRING || !is_numeric_string(Z_STRVAL_P(tmp), Z_STRLEN_P(tmp), &redirect_m… in make_http_soap_request()
437 if (Z_TYPE_P(tmp) == IS_LONG) in make_http_soap_request()
438 redirect_max = Z_LVAL_P(tmp); in make_http_soap_request()
486 tmp = Z_CLIENT_HTTPURL_P(this_ptr); in make_http_soap_request()
487 if (Z_TYPE_P(tmp) == IS_OBJECT && instanceof_function(Z_OBJCE_P(tmp), soap_url_class_entry) && in make_http_soap_request()
488 (orig = Z_SOAP_URL_P(tmp)->url) != NULL && in make_http_soap_request()
550 (tmp = php_stream_context_get_option(context, "http", "protocol_version")) != NULL && in make_http_soap_request()
551 Z_TYPE_P(tmp) == IS_DOUBLE && in make_http_soap_request()
552 Z_DVAL_P(tmp) == 1.0) { in make_http_soap_request()
597 tmp = Z_CLIENT_USER_AGENT_P(this_ptr); in make_http_soap_request()
598 if (Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
599 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
601 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
605 (tmp = php_stream_context_get_option(context, "http", "user_agent")) != NULL && in make_http_soap_request()
606 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
607 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
609 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
624 (tmp = php_stream_context_get_option(context, "http", "content_type")) != NULL && in make_http_soap_request()
625 Z_TYPE_P(tmp) == IS_STRING && in make_http_soap_request()
626 Z_STRLEN_P(tmp) > 0 in make_http_soap_request()
629 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
641 (tmp = php_stream_context_get_option(context, "http", "content_type")) != NULL && in make_http_soap_request()
642 Z_TYPE_P(tmp) == IS_STRING && in make_http_soap_request()
643 Z_STRLEN_P(tmp) > 0 in make_http_soap_request()
646 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
687 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nc", sizeof("nc")-1)) != NULL && in make_http_soap_request()
688 Z_TYPE_P(tmp) == IS_LONG) { in make_http_soap_request()
689 Z_LVAL_P(tmp)++; in make_http_soap_request()
690 snprintf(nc, sizeof(nc), "%08" ZEND_LONG_FMT_SPEC, Z_LVAL_P(tmp)); in make_http_soap_request()
699 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
700 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
701 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
710 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
711 Z_TYPE_P(tmp) == IS_STRING && in make_http_soap_request()
712 Z_STRLEN_P(tmp) == sizeof("md5-sess")-1 && in make_http_soap_request()
713 stricmp(Z_STRVAL_P(tmp), "md5-sess") == 0) { in make_http_soap_request()
717 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
718 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
719 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
745 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
746 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
747 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
750 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
751 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
766 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
767 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
769 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
771 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
772 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
774 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
790 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
791 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
801 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "opaque", sizeof("opaque")-1)) != NULL && in make_http_soap_request()
802 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
804 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
806 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
807 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
809 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
852 zval *tmp; in make_http_soap_request() local
853 if (((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 1)) == NULL || in make_http_soap_request()
854 Z_TYPE_P(tmp) != IS_STRING || in make_http_soap_request()
855 strncmp(phpurl->path?ZSTR_VAL(phpurl->path):"/",Z_STRVAL_P(tmp),Z_STRLEN_P(tmp)) == 0) && in make_http_soap_request()
856 ((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 2)) == NULL || in make_http_soap_request()
857 Z_TYPE_P(tmp) != IS_STRING || in make_http_soap_request()
858 in_domain(ZSTR_VAL(phpurl->host),Z_STRVAL_P(tmp))) && in make_http_soap_request()
859 (use_ssl || (tmp = zend_hash_index_find(Z_ARRVAL_P(data), 3)) == NULL)) { in make_http_soap_request()
933 char *tmp; in make_http_soap_request() local
939 tmp = strstr(http_version," "); in make_http_soap_request()
940 if (tmp != NULL) { in make_http_soap_request()
941 tmp++; in make_http_soap_request()
942 http_status = atoi(tmp); in make_http_soap_request()
944 tmp = strstr(tmp," "); in make_http_soap_request()
945 if (tmp != NULL) { in make_http_soap_request()
946 tmp++; in make_http_soap_request()
950 http_msg = estrdup(tmp); in make_http_soap_request()
1366 char *pos, *tmp = NULL; in get_http_header_value_nodup() local
1381 tmp = pos + typelen; in get_http_header_value_nodup()
1384 while (*tmp == ' ' || *tmp == '\t') { in get_http_header_value_nodup()
1385 tmp++; in get_http_header_value_nodup()
1388 eol = strchr(tmp, '\n'); in get_http_header_value_nodup()
1391 } else if (eol > tmp) { in get_http_header_value_nodup()
1397 while (eol > tmp && (*(eol-1) == ' ' || *(eol-1) == '\t')) { in get_http_header_value_nodup()
1402 *len = eol - tmp; in get_http_header_value_nodup()
1403 return tmp; in get_http_header_value_nodup()