Sorry,
in my example I didn't check the Uri I have wrote.
In my tests it was not exactly http://my.prj.lh but
http://my_2008.prj.lh<http://my.prj.lh> and
I can see that hostname validator doesn't supports underscores.
So as I understand, this is not a bug, because underscore is not allowed
hostname character.
A bit confusing is that browsers (FF, Chrome) allows underscore to be used
in at least local hostnames.
--
Pagarbiai,
Vladas Diržys
Tel.: +370 620 69020
www.dirzys.com
On Mon, Nov 24, 2008 at 4:28 PM, Vladas Diržys <[EMAIL PROTECTED]>wrote:
> Hello,
>
> I try to pass a local http uri ("http://my.prj.lh") to Zend_Uri, but it
> brings me an exception "Invalid URI supplied".
>
> I can see in Zend_Http_Uri file, that it tries to validate with
> constant ALLOW_ALL
>
> code snippet:
> $validate = new Zend_Validate_Hostname(Zend_Validate_Hostname::ALLOW_ALL);
>
> but in the Zend_Validate_Hostname there is no place where it would check
> for this constant. At least I cant understand the logic...
>
> My question is, should validating my local address work? Or is it a BUG and
> it will be fixed?
>
>
> --
> Pagarbiai,
> Vladas Diržys
> Tel.: +370 620 69020
> www.dirzys.com
>