Skip to content

Language: INF/NAN→int untyped coerce emits E_DEPRECATED (#27926) - #27969

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-27926-inf-nan-int-deprecated
Aug 6, 2026
Merged

Language: INF/NAN→int untyped coerce emits E_DEPRECATED (#27926)#27969
PurHur merged 1 commit into
masterfrom
agent/issue-27926-inf-nan-int-deprecated

Conversation

@PurHur

@PurHur PurHur commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #27926

Test plan

  • Issue repro: Zend / VM / JIT byte-identical
./script/docker-exec.sh -- bash -lc 'php test/repro/issue_27926_inf_nan_int_deprecated.php > /tmp/z.out
php bin/vm.php test/repro/issue_27926_inf_nan_int_deprecated.php > /tmp/v.out
php bin/jit.php test/repro/issue_27926_inf_nan_int_deprecated.php 2>/dev/null > /tmp/j.out
diff -u /tmp/z.out /tmp/v.out && diff -u /tmp/z.out /tmp/j.out'

Trust snapshot (pre-work)

php-src reference

Zend/zend_operators.czend_dval_to_lval / implicit float→long deprecation

Made with Cursor

Match Zend zend_dval_to_lval for non-finite floats on bitwise and dim
read paths (VM + JIT); keep typed weak int for #27925.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur force-pushed the agent/issue-27926-inf-nan-int-deprecated branch from f76be48 to fe5602a Compare August 6, 2026 01:37
@PurHur
PurHur merged commit db0d154 into master Aug 6, 2026
1 check failed
@PurHur
PurHur deleted the agent/issue-27926-inf-nan-int-deprecated branch August 6, 2026 01:37
PurHur added a commit that referenced this pull request Aug 6, 2026
#27971)

#27966/#27968/#27969 landed past the last verified-fresh argv seed,
re-staling lowering_source_fingerprint (4f-m / #8713). Rebuild
bin-compile-aot on tip (e363d9206231…, verified-fresh) — no restamp.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request Aug 6, 2026
#27973)

#27966/#27968/#27969 landed past the last verified-fresh argv seed,
re-staling lowering_source_fingerprint (4f-m / #8713). Rebuild
bin-compile-aot on tip (e363d9206231…, verified-fresh) — no restamp.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Language: INF/NAN→int conversion silent — Zend E_DEPRECATED (zend_operators.c)

1 participant