Lines Matching refs:http_buf
1428 zend_string *http_buf = NULL; in get_http_body() local
1468 if (http_buf) { in get_http_body()
1469 zend_string_release_ex(http_buf, 0); in get_http_body()
1474 if (http_buf) { in get_http_body()
1475 http_buf = zend_string_realloc(http_buf, http_buf_size + buf_size, 0); in get_http_body()
1477 http_buf = zend_string_alloc(buf_size, 0); in get_http_body()
1481 … ssize_t len_read = php_stream_read(stream, http_buf->val + http_buf_size, buf_size - len_size); in get_http_body()
1498 if (http_buf) { in get_http_body()
1499 zend_string_release_ex(http_buf, 0); in get_http_body()
1506 if (http_buf) { in get_http_body()
1507 zend_string_release_ex(http_buf, 0); in get_http_body()
1529 if (http_buf == NULL) { in get_http_body()
1537 http_buf = zend_string_alloc(header_length, 0); in get_http_body()
1539 …ssize_t len_read = php_stream_read(stream, http_buf->val + http_buf_size, header_length - http_buf… in get_http_body()
1548 if (http_buf) { in get_http_body()
1549 http_buf = zend_string_realloc(http_buf, http_buf_size + 4096, 0); in get_http_body()
1551 http_buf = zend_string_alloc(4096, 0); in get_http_body()
1553 len_read = php_stream_read(stream, http_buf->val + http_buf_size, 4096); in get_http_body()
1562 http_buf->val[http_buf_size] = '\0'; in get_http_body()
1563 http_buf->len = http_buf_size; in get_http_body()
1564 return http_buf; in get_http_body()