Skip to content

Bootstrap: php-cfg-asymmetric-visibility Param.php overlay anchor missing — blocks public private(set) parse (#7460) #7468

Description

@PurHur

Category

bootstrap | language | pairs #7460

Problem

./script/apply-patches.sh logs:

php-cfg-asymmetric-visibility: Param.php promotionSetVisibility anchor missing

The asymmetric visibility php-cfg overlays (#5059, #4690) no longer match current vendor/ircmaxell/php-cfg/lib/PHPCfg/Op/Expr/Param.php. Parser therefore rejects valid PHP 8.4 syntax:

Multiple access type modifiers are not allowed

Runtime work from closed #3165 cannot be verified until php-cfg exposes promotionSetVisibility / combined visibility on promoted properties.

php-src reference

Repro

./script/docker-exec.sh -- bash -lc '
  ./script/apply-patches.sh 2>&1 | grep asymmetric
  grep promotionSetVisibility vendor/ircmaxell/php-cfg/lib/PHPCfg/Op/Expr/Param.php || echo NO_PROMO_SET_VIS
  php bin/vm.php test/repro-maintainer/asymmetric_visibility_regression.php 2>&1 | head -3
'
<?php
class A {
    public private(set) string $x = 'hi';
}
echo (new A())->x;

Scope

Done when

  • apply-patches.sh reports asymmetric overlay applied (no anchor-missing stderr)
  • public private(set) string $x parses; repro prints hi
  • Foreign-scope write throws Error (php-src-strict)
  • Compliance test/compliance/cases/language/asymmetric_visibility.phpt green

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

    MOST IMPORTANTThis are the most important targetsarea:compilerCompiler / CFG / JITenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-0:FoundationPhase 0 – foundation & DevExphase-2:languagePhase 2 – language features

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions