Skip to content

Stdlib: AOT mb_scrub() runtime encoding via NestedJIT (#35161) - #35162

Merged
PurHur merged 1 commit into
masterfrom
fix/35161-mb-scrub-runtime-encoding
Aug 26, 2026
Merged

Stdlib: AOT mb_scrub() runtime encoding via NestedJIT (#35161)#35162
PurHur merged 1 commit into
masterfrom
fix/35161-mb-scrub-runtime-encoding

Conversation

@PurHur

@PurHur PurHur commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • ./script/aot-smoke.sh8 passed, 0 failed
  • ./script/docker-exec.sh -- bash -lc 'php bin/compile.php -o /tmp/t.bin test/repro/mb_scrub_runtime_encoding_aot.php && /tmp/t.bin' — matches Zend/VM (incl. ValueError on bad encoding)
  • getenv non-foldable encoding path matches Zend
  • ./script/phpunit.sh --filter MbScrubRuntimeAotTest → OK (3 tests, 22 assertions)

Made with Cursor

Peer of mb_substr_count/mb_strwidth: assertEncodingArgv for Argument #2 so non-literal encodings compile and match Zend under thin AOT.

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.

AOT: mb_scrub() refuses runtime encoding — LogicException (leftover of #34338, ext/mbstring/mbstring.c)

1 participant