Skip to content

parse_url lowercases the scheme #55

Closed

Description

@blacktrs

Summary

parse_url lowercases the scheme.

Repro

<?php
var_dump(parse_url('HTTP://Example.com/x')['scheme']);

Expected (php 8.5)

string(4) "HTTP"

Actual (manticore 10affa68, macOS arm64)

string(4) "http"

Tracking

Known-bug repro: tests/aot/repro/wrong/parse_url_scheme_case.php — bash tests/aot/xfail.sh -k parse_url_scheme_case 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 Oct 5, 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