[php-src] PR #19527: [Fix] parse_url: don’t treat colon in path as port

From: Date: Wed, 20 Aug 2025 09:11:28 +0000
Subject: [php-src] PR #19527: [Fix] parse_url: don’t treat colon in path as port
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32839@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19527 Author: arshidkv12 Fix parse_url() to avoid treating a colon followed by digits inside the path as a port number. **Before**: ```php $url = '//www.example.com/ddd:65333/'; var_export(parse_url($url)); ``` ```bash array ( 'host' => 'www.example.com', 'port' => 65333, 'path' => '/ddd:65333/', ) ``` **After** ```bash array ( 'host' => 'www.example.com', 'path' => '/ddd:65333/', ) ```

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