Skip to content

Stdlib: guard AOT asort/ksort string-key sorts (#27513) - #28073

Merged
PurHur merged 1 commit into
masterfrom
fix/27513-aot-asort-ksort-guard
Aug 6, 2026
Merged

PurHur merged 1 commit into
masterfrom
fix/27513-aot-asort-ksort-guard

Conversation

@PurHur

@PurHur PurHur commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #27513

Test plan

  • php test/repro/issue_27513_aot_asort_ksort.php → a,b,c|1,2,3 ×2
  • php bin/vm.php test/repro/issue_27513_aot_asort_ksort.php → same
  • php bin/compile.php -o /tmp/aot_27513 test/repro/issue_27513_aot_asort_ksort.php && 10× /tmp/aot_27513 → match
  • php -d memory_limit=1536M vendor/bin/phpunit --filter AsortKsortAot27513Test → OK (1 test, 27 assertions)
  • php -d memory_limit=1536M vendor/bin/phpunit --filter 'asort|ksort_assoc' test/aot/AotTest.php → OK (4 tests)
  • Not run: full ci-local.sh / compliance suites (guard-only change)

Gate snapshot

  • php script/bootstrap-inventory.php --check → OK 7113/7113
  • release-readiness --json: spine-coverage / north-star5-fast still red on master (unrelated to this PR)

Made with Cursor

Thin AOT asort()/ksort() already match Zend via HashTable LLVM (#27227);
add repro, AOT fixtures, and a 10× native run unit test so the module-verify
regression cannot return silently.

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.

Regression: AOT asort()/ksort() compile fails — Module verify arity (ext/standard/array.c)

1 participant