Lines Matching refs:tmp

98 	zval *tmp;  in http_context_headers()  local
101 (tmp = php_stream_context_get_option(context, "http", "header")) != NULL && in http_context_headers()
102 Z_TYPE_P(tmp) == IS_STRING && Z_STRLEN_P(tmp)) { in http_context_headers()
103 char *s = Z_STRVAL_P(tmp); in http_context_headers()
164 zval *proxy_host, *proxy_port, *tmp, ssl_proxy_peer_name; in http_connect() local
185 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_connection_timeout", sizeof("_connection_ti… in http_connect()
186 Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) > 0) { in http_connect()
187 tv.tv_sec = Z_LVAL_P(tmp); 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()
198 Z_TYPE_P(tmp) == IS_LONG) { in http_connect()
200 switch (Z_LVAL_P(tmp)) { in http_connect()
245 if (!context || (tmp = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { 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()
286 Z_TYPE_P(tmp) == IS_LONG) { in http_connect()
287 switch (Z_LVAL_P(tmp)) { in http_connect()
349 zval *trace, *tmp; in make_http_soap_request() local
375 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "compression", sizeof("compression")-1)) != N… in make_http_soap_request()
376 int level = Z_LVAL_P(tmp) & 0x0f; in make_http_soap_request()
377 int kind = Z_LVAL_P(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request()
381 if ((Z_LVAL_P(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { in make_http_soap_request()
419 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket")-1)) != NUL… in make_http_soap_request()
420 php_stream_from_zval_no_verify(stream,tmp); in make_http_soap_request()
421 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy")-1)) != NUL… in make_http_soap_request()
422 use_proxy = Z_LVAL_P(tmp); in make_http_soap_request()
432 if (NULL != (tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), in make_http_soap_request()
434 context = php_stream_context_from_zval(tmp, 0); in make_http_soap_request()
438 (tmp = php_stream_context_get_option(context, "http", "max_redirects")) != NULL) { in make_http_soap_request()
439 …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()
440 if (Z_TYPE_P(tmp) == IS_LONG) in make_http_soap_request()
441 redirect_max = Z_LVAL_P(tmp); in make_http_soap_request()
489 if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl")-1)) != NULL && in make_http_soap_request()
490 (orig = (php_url *) zend_fetch_resource_ex(tmp, "httpurl", le_url)) != NULL && in make_http_soap_request()
546 (tmp = php_stream_context_get_option(context, "http", "protocol_version")) != NULL && in make_http_soap_request()
547 Z_TYPE_P(tmp) == IS_DOUBLE && in make_http_soap_request()
548 Z_DVAL_P(tmp) == 1.0) { in make_http_soap_request()
587 …((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_keep_alive", sizeof("_keep_alive")-1)) != NULL… in make_http_soap_request()
588 (Z_TYPE_P(tmp) == IS_FALSE || (Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) == 0)))) { in make_http_soap_request()
595 …if ((tmp = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_user_agent", sizeof("_user_agent")-1)) != N… in make_http_soap_request()
596 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
597 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
599 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
603 (tmp = php_stream_context_get_option(context, "http", "user_agent")) != NULL && in make_http_soap_request()
604 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
605 if (Z_STRLEN_P(tmp) > 0) { in make_http_soap_request()
607 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
658 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nc", sizeof("nc")-1)) != NULL && in make_http_soap_request()
659 Z_TYPE_P(tmp) == IS_LONG) { in make_http_soap_request()
660 Z_LVAL_P(tmp)++; in make_http_soap_request()
661 snprintf(nc, sizeof(nc), "%08ld", Z_LVAL_P(tmp)); in make_http_soap_request()
670 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
671 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
672 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
681 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
682 Z_TYPE_P(tmp) == IS_STRING && in make_http_soap_request()
683 Z_STRLEN_P(tmp) == sizeof("md5-sess")-1 && in make_http_soap_request()
684 stricmp(Z_STRVAL_P(tmp), "md5-sess") == 0) { in make_http_soap_request()
688 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
689 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
690 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
716 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
717 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
718 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
721 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
722 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
737 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
738 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
740 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
742 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
743 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
745 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
761 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
762 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
772 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "opaque", sizeof("opaque")-1)) != NULL && in make_http_soap_request()
773 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
775 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
777 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
778 Z_TYPE_P(tmp) == IS_STRING) { in make_http_soap_request()
780 smart_str_appendl(&soap_headers, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); in make_http_soap_request()
831 zval *tmp; in make_http_soap_request() local
832 if (((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 1)) == NULL || in make_http_soap_request()
833 Z_TYPE_P(tmp) != IS_STRING || in make_http_soap_request()
834 strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_P(tmp),Z_STRLEN_P(tmp)) == 0) && in make_http_soap_request()
835 ((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 2)) == NULL || in make_http_soap_request()
836 Z_TYPE_P(tmp) != IS_STRING || in make_http_soap_request()
837 in_domain(phpurl->host,Z_STRVAL_P(tmp))) && in make_http_soap_request()
838 (use_ssl || (tmp = zend_hash_index_find(Z_ARRVAL_P(data), 3)) == NULL)) { in make_http_soap_request()
915 char *tmp; in make_http_soap_request() local
921 tmp = strstr(http_version," "); in make_http_soap_request()
922 if (tmp != NULL) { in make_http_soap_request()
923 tmp++; in make_http_soap_request()
924 http_status = atoi(tmp); in make_http_soap_request()
926 tmp = strstr(tmp," "); in make_http_soap_request()
927 if (tmp != NULL) { in make_http_soap_request()
928 tmp++; in make_http_soap_request()
932 http_msg = estrdup(tmp); in make_http_soap_request()
1338 char *pos, *tmp = NULL; in get_http_header_value() local
1353 tmp = pos + typelen; in get_http_header_value()
1354 eol = strchr(tmp, '\n'); in get_http_header_value()
1357 } else if (eol > tmp && *(eol-1) == '\r') { in get_http_header_value()
1360 return estrndup(tmp, eol - tmp); in get_http_header_value()