- if (body && (response_len - (body - header))) {
- ZVAL_STRINGL(zbody, body, response_len - (body - header) - 1, 1);
- } else {
- Z_TYPE_P(zbody) = IS_NULL;
+ if (*body && (*body_len = response_len - (*body - header))) {
+ *body = estrndup(*body, *body_len - 1);