Lines Matching refs:tmp

96 	zval **tmp;  in http_context_headers()  local
99 php_stream_context_get_option(context, "http", "header", &tmp) == SUCCESS && in http_context_headers()
100 Z_TYPE_PP(tmp) == IS_STRING && Z_STRLEN_PP(tmp)) { in http_context_headers()
101 char *s = Z_STRVAL_PP(tmp); in http_context_headers()
162 zval **proxy_host, **proxy_port, **tmp; in http_connect() local
182 …OP_P(this_ptr), "_connection_timeout", sizeof("_connection_timeout"), (void **) &tmp) == SUCCESS && in http_connect()
183 Z_TYPE_PP(tmp) == IS_LONG && Z_LVAL_PP(tmp) > 0) { in http_connect()
184 tv.tv_sec = Z_LVAL_PP(tmp); in http_connect()
282 zval **trace, **tmp; in make_http_soap_request() local
307 …(this_ptr), "compression", sizeof("compression"), (void **)&tmp) == SUCCESS && Z_TYPE_PP(tmp) == I… in make_http_soap_request()
308 int level = Z_LVAL_PP(tmp) & 0x0f; in make_http_soap_request()
309 int kind = Z_LVAL_PP(tmp) & SOAP_COMPRESSION_DEFLATE; in make_http_soap_request()
313 if ((Z_LVAL_PP(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { 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()
354 php_stream_from_zval_no_verify(stream,tmp); in make_http_soap_request()
355 …_P(this_ptr), "_use_proxy", sizeof("_use_proxy"), (void **)&tmp) == SUCCESS && Z_TYPE_PP(tmp) == I… in make_http_soap_request()
356 use_proxy = Z_LVAL_PP(tmp); in make_http_soap_request()
367 "_stream_context", sizeof("_stream_context"), (void**)&tmp)) { in make_http_soap_request()
368 context = php_stream_context_from_zval(*tmp, 0); in make_http_soap_request()
372 php_stream_context_get_option(context, "http", "max_redirects", &tmp) == SUCCESS) { in make_http_soap_request()
373 …if (Z_TYPE_PP(tmp) != IS_STRING || !is_numeric_string(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &redirec… in make_http_soap_request()
374 if (Z_TYPE_PP(tmp) == IS_LONG) in make_http_soap_request()
375 redirect_max = Z_LVAL_PP(tmp); 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()
418 … (orig = (php_url *) zend_fetch_resource(tmp TSRMLS_CC, -1, "httpurl", NULL, 1, le_url)) != NULL && in make_http_soap_request()
470 php_stream_context_get_option(context, "http", "protocol_version", &tmp) == SUCCESS && in make_http_soap_request()
471 Z_TYPE_PP(tmp) == IS_DOUBLE && in make_http_soap_request()
472 Z_DVAL_PP(tmp) == 1.0) { 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()
518 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
519 if (Z_STRLEN_PP(tmp) > 0) { in make_http_soap_request()
521 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
525 php_stream_context_get_option(context, "http", "user_agent", &tmp) == SUCCESS && in make_http_soap_request()
526 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
527 if (Z_STRLEN_PP(tmp) > 0) { in make_http_soap_request()
529 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
580 if (zend_hash_find(Z_ARRVAL_PP(digest), "nc", sizeof("nc"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
581 Z_TYPE_PP(tmp) == IS_LONG) { in make_http_soap_request()
582 Z_LVAL_PP(tmp)++; in make_http_soap_request()
583 snprintf(nc, sizeof(nc), "%08ld", Z_LVAL_PP(tmp)); in make_http_soap_request()
592 if (zend_hash_find(Z_ARRVAL_PP(digest), "realm", sizeof("realm"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
593 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
594 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
603 …if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCES… in make_http_soap_request()
604 Z_TYPE_PP(tmp) == IS_STRING && in make_http_soap_request()
605 Z_STRLEN_PP(tmp) == sizeof("md5-sess")-1 && in make_http_soap_request()
606 stricmp(Z_STRVAL_PP(tmp), "md5-sess") == 0) { in make_http_soap_request()
610 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonce", sizeof("nonce"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
611 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
612 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
648 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonce", sizeof("nonce"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
649 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
650 PHP_MD5Update(&md5ctx, (unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
653 if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
654 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
669 if (zend_hash_find(Z_ARRVAL_PP(digest), "realm", sizeof("realm"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
670 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
672 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
674 if (zend_hash_find(Z_ARRVAL_PP(digest), "nonce", sizeof("nonce"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
675 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
677 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
693 if (zend_hash_find(Z_ARRVAL_PP(digest), "qop", sizeof("qop"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
694 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
704 … if (zend_hash_find(Z_ARRVAL_PP(digest), "opaque", sizeof("opaque"), (void **)&tmp) == SUCCESS && in make_http_soap_request()
705 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
707 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
709 …if (zend_hash_find(Z_ARRVAL_PP(digest), "algorithm", sizeof("algorithm"), (void **)&tmp) == SUCCES… in make_http_soap_request()
710 Z_TYPE_PP(tmp) == IS_STRING) { in make_http_soap_request()
712 smart_str_appendl(&soap_headers, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp)); in make_http_soap_request()
762 zval **tmp; in make_http_soap_request() local
763 if ((zend_hash_index_find(Z_ARRVAL_PP(data), 1, (void**)&tmp) == FAILURE || in make_http_soap_request()
764 strncmp(phpurl->path?phpurl->path:"/",Z_STRVAL_PP(tmp),Z_STRLEN_PP(tmp)) == 0) && in make_http_soap_request()
765 (zend_hash_index_find(Z_ARRVAL_PP(data), 2, (void**)&tmp) == FAILURE || in make_http_soap_request()
766 in_domain(phpurl->host,Z_STRVAL_PP(tmp))) && in make_http_soap_request()
767 (use_ssl || zend_hash_index_find(Z_ARRVAL_PP(data), 3, (void**)&tmp) == FAILURE)) { in make_http_soap_request()
840 char *tmp; in make_http_soap_request() local
846 tmp = strstr(http_version," "); in make_http_soap_request()
847 if (tmp != NULL) { in make_http_soap_request()
848 tmp++; in make_http_soap_request()
849 http_status = atoi(tmp); in make_http_soap_request()
851 tmp = strstr(tmp," "); in make_http_soap_request()
852 if (tmp != NULL) { in make_http_soap_request()
853 tmp++; in make_http_soap_request()
857 http_msg = estrdup(tmp); in make_http_soap_request()
1261 char *pos, *tmp = NULL; in get_http_header_value() local
1276 tmp = pos + typelen; in get_http_header_value()
1277 eol = strchr(tmp, '\n'); in get_http_header_value()
1280 } else if (eol > tmp && *(eol-1) == '\r') { in get_http_header_value()
1283 return estrndup(tmp, eol - tmp); in get_http_header_value()