Lines Matching refs:header
89 zval *header; in on_header_available() local
100 MAKE_STD_ZVAL(header); in on_header_available()
101 Z_STRLEN_P(header) = length; in on_header_available()
102 Z_STRVAL_P(header) = estrndup(data, length); in on_header_available()
103 if (Z_STRVAL_P(header)[length-1] == '\n') { in on_header_available() local
104 Z_STRVAL_P(header)[length-1] = '\0'; in on_header_available() local
105 Z_STRLEN_P(header)--; in on_header_available()
107 if (Z_STRVAL_P(header)[length-2] == '\r') { in on_header_available() local
108 Z_STRVAL_P(header)[length-2] = '\0'; in on_header_available() local
109 Z_STRLEN_P(header)--; in on_header_available()
112 Z_TYPE_P(header) = IS_STRING; in on_header_available()
113 zend_hash_next_index_insert(Z_ARRVAL_P(curlstream->headers), &header, sizeof(zval *), NULL); in on_header_available()
351 zval **header = NULL; in php_curl_stream_opener() local
354 SUCCESS == zend_hash_get_current_data_ex(Z_ARRVAL_PP(ctx_opt), (void *)&header, &pos); in php_curl_stream_opener()
357 if (Z_TYPE_PP(header) == IS_STRING) { in php_curl_stream_opener()
358 curlstream->headers_slist = curl_slist_append(curlstream->headers_slist, Z_STRVAL_PP(header)); in php_curl_stream_opener()