Skip to content

tree: Use ZVAL_NEW_STR()/ZVAL_STR() instead of assigning Z_STR() directly - #25704

Open
adapik wants to merge 1 commit into
php:masterfrom
adapik:zval-str-assign-macros
Open

adapik wants to merge 1 commit into
php:masterfrom
adapik:zval-str-assign-macros

Conversation

@adapik

@adapik adapik commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Replace direct Z_STR(zv) = ... (plus manual Z_TYPE_INFO/Z_TYPE_FLAGS fixups) with ZVAL_NEW_STR() / ZVAL_STR(), so the pointer and the type flags are always set together. No functional change intended.

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.

1 participant