Skip to content

static::$prop = v where only subclasses declare the property fails to lower: "unsupported assign target kind StaticAccess". #620

Closed

Description

@blacktrs

Summary

static::$prop = v where only subclasses declare the property fails to lower: "unsupported assign target kind StaticAccess".

Repro

<?php
// reported in #614 (phpseclib Crypt/Common/AsymmetricKey.php)
abstract class Key {
    public static function forceEngine($e) { static::$forcedEngine = $e; }
    public static function engine() { return static::$forcedEngine; }
}
class RSA extends Key { protected static $forcedEngine = null; }
RSA::forceEngine('PHP');
echo RSA::engine(), "\n";

Expected (php)

PHP

Actual (manticore c421455f, Darwin arm64)

compile failed (rc=65):
compile failed: MIR.lower: unsupported assign target kind StaticAccess at tests/aot/repro/wrong/static_prop_lsb_store_subclass_declared.php:5
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/wrong/static_prop_lsb_store_subclass_declared.php — bash tests/aot/xfail.sh -k static_prop_lsb_store_subclass_declared reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.

Activity

  1. added
    bug
    wrong-answer
    on Nov 10, 2026
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

    bugwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions