Skip to content

ext/standard: Use zend_string_concat* helpers instead of manual allocation and memcpy#21455

Closed
arshidkv12 wants to merge 1 commit into
php:masterfrom
arshidkv12:http-2
Closed

ext/standard: Use zend_string_concat* helpers instead of manual allocation and memcpy#21455
arshidkv12 wants to merge 1 commit into
php:masterfrom
arshidkv12:http-2

Conversation

@arshidkv12
Copy link
Copy Markdown
Contributor

…ation and memcpy

Comment thread ext/standard/http.c
ZSTR_VAL(tmp), ZSTR_LEN(tmp),
"%5D%5B", sizeof("%5D%5B") - 1
);
zend_string_release(tmp);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now instead of one unique allocation we have two. not sure we gain anything meaningful here.

@arshidkv12 arshidkv12 closed this Mar 15, 2026
@arshidkv12 arshidkv12 deleted the http-2 branch March 17, 2026 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants