[php-src] PR #19529: [Fix] UTF-8 handling on macOS in php_replace_controlchars()
| From: | arshidkv12 | Date: | Wed, 20 Aug 2025 10:38:40 +0000 |
| Subject: | [php-src] PR #19529: [Fix] UTF-8 handling on macOS in php_replace_controlchars() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32844@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19529
Author: arshidkv12
Fix php_replace_controlchars() on macOS so UTF-8 characters in URLs are preserved.
Previously, non-ASCII characters in hosts were replaced with _ or became � due to improper
handling of multibyte UTF-8 characters.
```php
<?php
$parsed = parse_url('http://ουτοπία.δπθ.gr/');
var_dump($parsed['host']);
?>
--EXPECT--
string(24) "ουτοπία.δπθ.gr"
```