1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/uri/tests/whatwg/parsing/host_error_Invalid.phpt
2025-11-03 21:51:56 +01:00

15 lines
319 B
PHP

--TEST--
Test Uri\WhatWg\Url parsing - host - invalid code point
--FILE--
<?php
try {
new Uri\WhatWg\Url("https://ex[a]mple.com");
} catch (Throwable $e) {
echo $e::class, ": ", $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Uri\WhatWg\InvalidUrlException: The specified URI is malformed (DomainInvalidCodePoint)