[php-src] PR #22341: Fix SOAP client failing to follow a scheme-less redirect Location
| From: | iliaal | Date: | Tue, 16 Jun 2026 21:22:10 +0000 |
| Subject: | [php-src] PR #22341: Fix SOAP client failing to follow a scheme-less redirect Location | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36470@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22341
Author: iliaal
On a 3xx redirect with a scheme-less Location (relative or absolute-path), the redirect handler
copied scheme/host/port from the freshly parsed Location URI itself rather than the previous request
URI, leaving the host NULL so the retry aborted with "Unable to parse URL". Read the
inherited components and the relative-path base from the request URI, restoring the pre-refactor
behaviour.