[GIT-PULLS] [php-src] PR #23256: PFA: Fix strict_types checking when a const arg is inlined

[email protected] (arnaud-lb)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23256
Author: arnaud-lb

GH-22829 added an optimization to burn literal arguments into the generated closure. An overlooked side effect is that this arguments are not checked anymore by `zp_bind()` (GH-22789).

Fix by checking these arguments ahead of time.

Bug found by Ryan @ Calif.io.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.