[php-src] PR #20303: uri: Use the “includes credentials” rule for WhatWg user/password getters

From: Date: Sun, 26 Oct 2025 16:32:32 +0000
Subject: [php-src] PR #20303: uri: Use the “includes credentials” rule for WhatWg user/password getters
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33819@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20303 Author: TimWolla Thinking about https://github.com/php/php-src/pull/20208#issuecomment-3419644421 this change seems to be most in line with the current semantics of distinguishing between null and "" for WHATWG. If we decide that null doesn't make sense for WHATWG, we can still change this, but for now this seems to be an actual bug fix. ------------------ The URL serializing algorithm from the WHATWG URL Standard uses an “includes credentials” rule to decide whether or not to include the @ in the output, indicating the presence of a userinfo component in RFC 3986 terminology. Use this rule to determine whether or not an empty username or password should be returned as the empty string (present but empty) or NULL (not present).

« previous php.git-pulls (#33819) next »