Skip to content

php-in-php: drop leftover Type always-on __compiler_assert_fail_string ABI shell (ext/standard/assert.c) #33241

Description

@PurHur

Category

php-in-php · Trust / #32122-class leftover Type always-on ABI shell

Problem

After #33237 dropped __compiler_assert_fail, Builtin\Type still always-on addFunction/registerFunction for __compiler_assert_fail_string. Leftover empty Type decls vs Runtime ABI drift mint assert_fail_string.1 (#31894 / #32122). Sentinel after #33237.

Path Owner today
__compiler_assert_fail AssertFail module-local (#33237)
__compiler_assert_fail_string still Type always-on

php-src reference

PHP implementation target

  • lib/JIT/Builtin/AssertFail.php — declare __compiler_assert_fail_string module-locally (getNamedFunction first, then addFunction if absent)
  • lib/JIT/Builtin/Type.php — remove always-on empty decl; keep AssertFail::ensureLinked
  • ext/standard/JitAssert.php — ensureLinked before lookup (already)
  • No new runtime/*.c

Repro / gate

./script/phpunit.sh --filter TypeDeadAssertFailStringAbiRuntimeShrinkTest
./script/aot-smoke.sh

Done when

  • Type.php has no always-on __compiler_assert_fail_string add/register
  • AssertFail owns module-local decl; unit shrink test green
  • aot-smoke 8/8
  • No new runtime/*.c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:compilerCompiler / CFG / JITbugSomething isn't workingimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevEx

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions