Skip to content

Stdlib: Random\IntervalBoundary enum missing — ext/random parity #11551

Closed

Description

@PurHur

Repro (Zend php-src)

php -r 'var_dump(enum_exists("Random\\IntervalBoundary"));'

Expected (Zend):

  • bool(true)

Repro (php-compiler VM)

./script/docker-exec.sh -- bash -lc 'php bin/vm.php -r "var_dump(function_exists(\"enum_exists\") ? enum_exists(\"Random\\IntervalBoundary\") : false);"'

Actual (php-compiler):

  • bool(false) / missing symbol

php-src reference

  • ext/random/random.stub.php (enum stub)

Done when

  • Random\IntervalBoundary exists as an enum with php-src cases and values.
  • Add a compliance test under test/compliance/cases/ for enum_exists() + case list.

Activity

  1. added
    enhancementNew feature or request
    phase-4:stdlibPhase 4 – stdlib for web apps
    area:vmVirtual machine
    implementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claim
    on Jun 25, 2026
  2. PurHur commented on Jun 29, 2026

    @PurHur
    OwnerAuthor

    claim: worker-lane-c — batch (issues #13748, #11825, #11551)

  3. PurHur commented on Jun 29, 2026

    @PurHur
    OwnerAuthor

    Merged. Random\\IntervalBoundary registered with php-src cases; compliance + unit tests green.

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:vmVirtual machineenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-4:stdlibPhase 4 – stdlib for web appsstdlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions