Skip to content

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

Closed
PurHur wants to merge 1 commit into
masterfrom
agent/issue-35161-mb-scrub-runtime-encoding
Closed

Stdlib: AOT mb_scrub() runtime encoding via NestedJIT (#35161)#35164
PurHur wants to merge 1 commit into
masterfrom
agent/issue-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/8
  • Issue repro (ENC=UTF-8 getenv encoding): Zend/VM/AOT all print a?b
  • ./script/phpunit.sh --filter MbScrubRuntimeAotTest → OK (3 tests, 22 assertions)
  • test/repro/mb_scrub_runtime_encoding_aot.php Zend vs AOT byte-identical (incl. bad encoding ValueError)

Made with Cursor

Accept non-literal encoding args under AOT like mb_substr_count / mb_convert_case TITLE, using NestedJIT assertEncodingArgv instead of a compile-time LogicException.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur

PurHur commented Aug 26, 2026

Copy link
Copy Markdown
Owner Author

Duplicate of already-merged #35162 (same #35161 fix landed while this branch was in flight). Closing.

@PurHur PurHur closed this Aug 26, 2026
@PurHur
PurHur deleted the agent/issue-35161-mb-scrub-runtime-encoding branch September 3, 2026 03:29
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