Bug #51192 [Com]: FILTER_VALIDATE_URL will invalidate a hostname that includes '-'

From: Date: Fri, 21 Aug 2015 17:18:28 +0000
Subject: Bug #51192 [Com]: FILTER_VALIDATE_URL will invalidate a hostname that includes '-'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195409@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=51192&edit=1 ID: 51192 Comment by: rich at social5 dot com Reported by: solar at azrael dot ws Summary: FILTER_VALIDATE_URL will invalidate a hostname that includes '-' Status: Closed Type: Bug Package: Filter related Operating System: linux PHP Version: 5.2.13 Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug definitely still persists in PHP 5.5.19 on CentOS. Previous Comments: ------------------------------------------------------------------------ [2014-01-06 20:54:33] skedat at gmail dot com php 5.4.4 on Windows this error still exists. ------------------------------------------------------------------------ [2012-07-26 18:58:58] rasmus@php.net Years of ignoring what? This was fixed years ago in PHP 5.3.3 ------------------------------------------------------------------------ [2012-07-26 14:28:27] bd9161b68a85 at e89800344727 dot anonbox dot net Can you please fix it after years of ignoring it? ------------------------------------------------------------------------ [2010-08-13 08:49:47] aharvey@php.net That also works as of 5.3.3 -- I actually own a couple of internationalised domains, so I'm aware of the issue. :) ------------------------------------------------------------------------ [2010-08-13 08:39:26] ondrej@php.net Please be aware that IDN (PunyCode) url can contain two consecutive hyphens, ie. xn--hkyrky-ptac70bc.cz is OK as well. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=51192 -- Edit this bug report at https://bugs.php.net/bug.php?id=51192&edit=1

« previous php.bugs (#195409) next »