Lines Matching refs:NULL

154 	if (context && (tmp = php_stream_context_get_option(context, "http", "header")) != NULL) {  in http_context_headers()
179 struct timeval *timeout = NULL; in http_connect()
241 NULL /*persistent_id*/, in http_connect()
244 NULL, NULL); in http_connect()
252 if (!context || (tmp = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { in http_connect()
274 stream = NULL; in http_connect()
284 stream = NULL; in http_connect()
316 if (php_stream_xport_crypto_setup(stream, crypto_method, NULL) < 0 || in http_connect()
319 stream = NULL; in http_connect()
354 php_url *phpurl = NULL; in make_http_soap_request()
370 char *http_msg = NULL; in make_http_soap_request()
372 php_stream_context *context = NULL; in make_http_soap_request()
377 if (this_ptr == NULL || Z_TYPE_P(this_ptr) != IS_OBJECT) { in make_http_soap_request()
411 if (call_user_function(CG(function_table), (zval*)NULL, &func, &retval, n, params) == SUCCESS && in make_http_soap_request()
436 stream = NULL; in make_http_soap_request()
439 if (location != NULL && location[0] != '\000') { in make_http_soap_request()
449 (tmp = php_stream_context_get_option(context, "http", "max_redirects")) != NULL) { in make_http_soap_request()
450 …mp) != IS_STRING || !is_numeric_string(Z_STRVAL_P(tmp), Z_STRLEN_P(tmp), &redirect_max, NULL, 1)) { in make_http_soap_request()
457 if (phpurl == NULL || phpurl->host == NULL) { in make_http_soap_request()
458 if (phpurl != NULL) {php_url_free(phpurl);} in make_http_soap_request()
462 add_soap_fault(this_ptr, "HTTP", "Unable to parse URL", NULL, NULL); in make_http_soap_request()
468 if (phpurl->scheme != NULL && zend_string_equals_literal(phpurl->scheme, "https")) { in make_http_soap_request()
470 } else if (phpurl->scheme == NULL || !zend_string_equals_literal(phpurl->scheme, "http")) { in make_http_soap_request()
475 …add_soap_fault(this_ptr, "HTTP", "Unknown protocol. Only http and https are allowed.", NULL, NULL); in make_http_soap_request()
482 … (use_ssl && php_stream_locate_url_wrapper("https://", NULL, STREAM_LOCATE_WRAPPERS_ONLY) == NULL)… in make_http_soap_request()
487 add_soap_fault(this_ptr, "HTTP", "SSL support is not available in this build", NULL, NULL); in make_http_soap_request()
498 if (stream != NULL) { in make_http_soap_request()
502 (orig = (php_url *) zend_fetch_resource_ex(tmp, "httpurl", le_url)) != NULL && in make_http_soap_request()
504 (((use_ssl && orig->scheme != NULL && zend_string_equals_literal(orig->scheme, "https")) || in make_http_soap_request()
505 (!use_ssl && orig->scheme == NULL) || in make_http_soap_request()
514 stream = NULL; in make_http_soap_request()
520 if (stream != NULL && php_stream_eof(stream)) { in make_http_soap_request()
525 stream = NULL; in make_http_soap_request()
541 add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL); in make_http_soap_request()
556 (tmp = php_stream_context_get_option(context, "http", "protocol_version")) != NULL && in make_http_soap_request()
611 (tmp = php_stream_context_get_option(context, "http", "user_agent")) != NULL && in make_http_soap_request()
630 (tmp = php_stream_context_get_option(context, "http", "content_type")) != NULL && in make_http_soap_request()
647 (tmp = php_stream_context_get_option(context, "http", "content_type")) != NULL && in make_http_soap_request()
693 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nc", sizeof("nc")-1)) != NULL && in make_http_soap_request()
705 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
716 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
723 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
751 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
756 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
772 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "realm", sizeof("realm")-1)) != NULL && in make_http_soap_request()
777 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "nonce", sizeof("nonce")-1)) != NULL && in make_http_soap_request()
796 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "qop", sizeof("qop")-1)) != NULL && in make_http_soap_request()
807 if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "opaque", sizeof("opaque")-1)) != NULL && in make_http_soap_request()
812 … if ((tmp = zend_hash_str_find(Z_ARRVAL_P(digest), "algorithm", sizeof("algorithm")-1)) != NULL && in make_http_soap_request()
856 if ((value = zend_hash_index_find(Z_ARRVAL_P(data), 0)) != NULL && in make_http_soap_request()
859 if (((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 1)) == NULL || in make_http_soap_request()
862 ((tmp = zend_hash_index_find(Z_ARRVAL_P(data), 2)) == NULL || in make_http_soap_request()
865 (use_ssl || (tmp = zend_hash_index_find(Z_ARRVAL_P(data), 3)) == NULL)) { in make_http_soap_request()
902 add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL); in make_http_soap_request()
908 add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL); in make_http_soap_request()
930 add_soap_fault(this_ptr, "HTTP", "Error Fetching http headers", NULL, NULL); in make_http_soap_request()
952 if (tmp != NULL) { in make_http_soap_request()
957 if (tmp != NULL) { in make_http_soap_request()
988 if (eqpos != NULL && (sempos == NULL || sempos > eqpos)) { in make_http_soap_request()
993 if (sempos != NULL) { in make_http_soap_request()
1005 if (sempos != NULL) { in make_http_soap_request()
1019 if (sempos != NULL) { in make_http_soap_request()
1099 …TP", "Error Fetching http body, No Content-Length, connection closed or chunked data", NULL, NULL); in make_http_soap_request()
1115 stream = NULL; in make_http_soap_request()
1122 if ((loc = get_http_header_value(ZSTR_VAL(http_headers), "Location: ")) != NULL) { in make_http_soap_request()
1125 if (new_url != NULL) { in make_http_soap_request()
1129 if (new_url->scheme == NULL && new_url->path != NULL) { in make_http_soap_request()
1130 new_url->scheme = phpurl->scheme ? zend_string_copy(phpurl->scheme) : NULL; in make_http_soap_request()
1131 new_url->host = phpurl->host ? zend_string_copy(phpurl->host) : NULL; in make_http_soap_request()
1158 add_soap_fault(this_ptr, "HTTP", "Redirection limit reached, aborting", NULL, NULL); in make_http_soap_request()
1243 char *pos = NULL; in make_http_soap_request()
1246 if (pos != NULL) { in make_http_soap_request()
1295 add_soap_fault(this_ptr, "HTTP", "Unknown Content-Encoding", NULL, NULL); in make_http_soap_request()
1298 if (call_user_function(CG(function_table), (zval*)NULL, &func, &retval, 1, params) == SUCCESS && in make_http_soap_request()
1310 add_soap_fault(this_ptr, "HTTP", "Can't uncompress compressed response", NULL, NULL); in make_http_soap_request()
1344 add_soap_fault(this_ptr, "HTTP", http_msg, NULL, NULL); in make_http_soap_request()
1359 char *pos, *tmp = NULL; in get_http_header_value_nodup()
1382 if (eol == NULL) { in get_http_header_value_nodup()
1407 return NULL; in get_http_header_value_nodup()
1421 return NULL; in get_http_header_value()
1426 zend_string *http_buf = NULL; in get_http_body()
1469 return NULL; in get_http_body()
1499 return NULL; in get_http_body()
1507 return NULL; in get_http_body()
1527 if (http_buf == NULL) { in get_http_body()
1533 return NULL; in get_http_body()
1557 return NULL; in get_http_body()
1583 return NULL; in get_http_headers()