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

From: Date: Wed, 20 Aug 2025 10:24:55 +0000
Subject: [php-src] PR #19528: [Fix] parse_url: don’t treat colon in path as port #19527
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-32843@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/19528 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 (#32843) next »