Skip to content

Regenerate the turbo declarations of MutatingScope - #7184

Merged
ondrejmirtes merged 1 commit into
2.3.xfrom
regenerate-mutating-scope-declarations
Nov 26, 2026
Merged

ondrejmirtes merged 1 commit into
2.3.xfrom
regenerate-mutating-scope-declarations

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

ce23f0d ("Narrow native types by conditional expression holders") added the private MutatingScope::narrowsNativeTypeByHolders() and hasEqualNativeType() and ported them to turbo-ext/src/MutatingScope.cpp, but it did not regenerate turbo-ext/src/generated/MutatingScope.h. Since then, Compile PHAR's Turbo Extension Version Check has failed at the method parity step (php turbo-ext/bin/side-by-side.php) on 2.3.x (ce23f0d90, f9e54c846):

✗ turbo-ext/src/generated/MutatingScope.h is stale — run php turbo-ext/bin/generate-declarations.php

The failing check also skips the turbo jobs that depend on it, including Commit PHAR.

  • Green baseline: 40620d1d5. Its Compile PHAR run passed in CI, and side-by-side.php passes locally on ce23f0d90~1 (51cdb8e97, whose own Compile PHAR run was cancelled by a later push).
  • First bad commit: ce23f0d90. side-by-side.php fails there locally with the message above.
  • Fix: the output of php turbo-ext/bin/generate-declarations.php. It adds the signatures of the two new private methods to the generated header; the rest of the diff is shifted string offsets. No C++ or PHP logic changes.

#7183 contains the same regenerated signatures as part of a larger change; this PR fixes 2.3.x on its own.

Verification

  • php turbo-ext/bin/side-by-side.php: exit 0, MutatingScope: 143 methods paired.
  • make build-turbo (strict, -Werror) succeeds. turbo-ext/tests/smoke.php: ALL OK. turbo-ext/tests/signature-parity.php: OK (18694 members compared).
  • The full paratest suite with phpstan_turbo.so loaded: 24204 tests, OK (116 skipped).

The shipped PHP code is unchanged, so the downgraded PHAR's PHP 7.4 compatibility is unaffected.

ce23f0d added the private MutatingScope::narrowsNativeTypeByHolders()
and hasEqualNativeType() and ported them to turbo-ext/src/MutatingScope.cpp,
but did not regenerate turbo-ext/src/generated/MutatingScope.h, so the
method parity check of the Turbo Extension Version Check fails.

Output of php turbo-ext/bin/generate-declarations.php.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1976c-1bde-72f8-b96c-072279109d59
@ondrejmirtes
ondrejmirtes merged commit 4df5bec into 2.3.x Nov 26, 2026
880 of 905 checks passed
@ondrejmirtes
ondrejmirtes deleted the regenerate-mutating-scope-declarations branch November 26, 2026 09:38
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.

1 participant