Skip to content

Staging: extend GH-21687 fix for by-val regression#53

Closed
iliaal wants to merge 1 commit intomasterfrom
staging/gh-21687-byval
Closed

Staging: extend GH-21687 fix for by-val regression#53
iliaal wants to merge 1 commit intomasterfrom
staging/gh-21687-byval

Conversation

@iliaal
Copy link
Copy Markdown
Owner

@iliaal iliaal commented May 3, 2026

Staging extension to php#21690 for CI validation before force-push to the upstream PR branch. Adds by-val callback handling on readonly properties (only by-ref throws now, by-val copies to a temp).

Check ZEND_ACC_READONLY before creating the reference. For by-ref
callbacks, throw the same "Cannot acquire reference to readonly
property" error foreach uses. For by-val callbacks, copy the value
into a temp so MAKE_REF does not corrupt the slot.

Closes phpGH-21687
@iliaal
Copy link
Copy Markdown
Owner Author

iliaal commented May 3, 2026

Validated; pushed to upstream php#21690.

@iliaal iliaal closed this May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant