Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Apr 14, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

ndossche and others added 4 commits April 14, 2025 14:11
This hack was once necessary before there was a proper get_gc handler,
but now it breaks the engine constraints.

Closes GH-18323.
* PHP-8.3:
  Fix GH-18322: SplObjectStorage debug handler mismanages memory
* PHP-8.4:
  Fix GH-18322: SplObjectStorage debug handler mismanages memory
…#18303)

* zend_compile: Allow `(void)` in for’s initializer and loop expression

The initializer and loop expression of a `for()` loop only accept expressions,
but they act like statements in spirit - their results are completely ignored.
Allow `(void)` there to allow suppressing `#[\NoDiscard]`, since there is no
semantic ambiguity of what `(void)` returns anyways.

Fixes #18301

* zend_language_parser: Simplify `for()` grammar
@pull pull bot added the ⤵️ pull label Apr 14, 2025
@pull pull bot merged commit 9ac8820 into wudi:master Apr 14, 2025
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