Skip to content

Bug: Some PHP Core Functions Like rand() and random_int() Not Resolved Despite Active Pro License #75

@ThinkByDesign

Description

@ThinkByDesign

I have a valid Intelephense Pro license, and most Pro-only features appear to be active (e.g. getopt(), gmp_*, ReflectionClass, etc.), but functions like rand() and random_int() are not being resolved. They appear as undefined and show no hover/tooltips, even though they are part of PHP core and available even in the free stub set.

✅ The following resolve correctly:
• array_map()
• getopt() (Pro-only CLI function)
• gmp_add() (Pro-only math extension)
• ReflectionClass (core class)
❌ These do not resolve:
• rand() → reported as undefined
• random_int() → reported as undefined
• Hover and signature info missing for both

For instance:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions