Skip to content

[pull] master from php:master#572

Merged
pull[bot] merged 8 commits into
dolfly:masterfrom
php:master
Feb 24, 2026
Merged

[pull] master from php:master#572
pull[bot] merged 8 commits into
dolfly:masterfrom
php:master

Conversation

@pull

@pull pull Bot commented Feb 24, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


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

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

iluuu1994 and others added 8 commits February 24, 2026 17:28
Since GH-15021 preloaded constants are propagated to compiled scripts. This is
problematic for file cache, which assumes all referenced zvals are either
persistently allocated or local to the current script. However, preloaded
constants live in shm as immutable, but not persistent.

To solve this, we'd need to duplicate propagated constants in the optimizer when
file cache is used. This is error prone given it needs to happen in many places.
It's debatable whether constant propagation is even correct in this case, as
running the preloaded script on a restart isn't guaranteed to produce the same
result.

Hence, avoid the issue for now by just not relying on preloaded symbols when
file cache is used.

Fixes GH-21052
Closes GH-21281
* PHP-8.4:
  Fix preloaded constant erroneously propagated to file-cached script
* PHP-8.5:
  Fix preloaded constant erroneously propagated to file-cached script
* PHP-8.5:
  Fix missed php_version changes
* PHP-8.4:
  ext/pcre: preg_match() fix memory leak with invalid regexes.
* PHP-8.5:
  ext/pcre: preg_match() fix memory leak with invalid regexes.
@pull pull Bot locked and limited conversation to collaborators Feb 24, 2026
@pull pull Bot added the ⤵️ pull label Feb 24, 2026
@pull pull Bot merged commit 300892a into dolfly:master Feb 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants