Skip to content

php-in-php: lazy Json + Offset/ScalarDim from ensureFull (#35065) - #35068

Merged
PurHur merged 1 commit into
masterfrom
fix/35065-ensurefull-lazy-json-offset
Aug 26, 2026
Merged

php-in-php: lazy Json + Offset/ScalarDim from ensureFull (#35065)#35068
PurHur merged 1 commit into
masterfrom
fix/35065-ensurefull-lazy-json-offset

Conversation

@PurHur

@PurHur PurHur commented Aug 26, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #35065

php-src

  • ext/json/php_json.cphp_json_encode / php_json_decode
  • Zend/zend_operators.c — string offset / scalar dim warnings

Test plan

  • ./script/phpunit.sh --filter ContextFullStandaloneLazyJsonOffsetShrinkTest → OK (4 tests)
  • ./script/aot-smoke.sh8/8
  • Thin hello: PHP_COMPILER_HELPER_RUNTIME_O=0 php bin/compile.php -o /tmp/hw.bin -r 'echo "hi";'hi
  • AOT json_encode/decode + $s[1] + scalar-dim warn matches Zend on the same probe

Made with Cursor

Drop always-on NestedJIT of StringJsonEncode/Decode and ScalarDim/StringOffset
during full standalone init; call sites already ensureLinked (#32122 .1 class).

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit c3d5347 into master Aug 26, 2026
@PurHur
PurHur deleted the fix/35065-ensurefull-lazy-json-offset branch August 26, 2026 10:11
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.

php-in-php: lazy StringJsonEncode/Decode + ScalarDim/StringOffset from ensureFullStandaloneBodies (Context.php)

1 participant