[PEAR-BUG] Bug #21013 [Com]: problem with two dots without trailing slash

[email protected] ("[email protected]") Mon, 4 Jan 2016 03:06:44 -0500 (EST)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=21013&edit=1

 ID:               21013
 Comment by:       [email protected]
 Reported By:      qdinar at gmail dot com
 Summary:          problem with two dots without trailing slash
 Status:           Assigned
 Type:             Bug
 Package:          Net_URL2
 Operating System: windows 10
 Package Version:  Unknown
 PHP Version:      5.5.11
 Assigned To:      tkli
 Roadmap Versions: 
 New Comment:

CVS: $Id: URL2.php 309223 2011-03-14 14:26:32Z till $

the ? signs in the report appeared instead of russian letter f


Previous Comments:
------------------------------------------------------------------------

[2016-01-03 10:26:34] tkli

-Assigned To:
+Assigned To: tkli
Thanks for reporting this issue, could you share which version of
Net_URL2 you're using?

------------------------------------------------------------------------

[2016-01-03 10:14:47] qdinar

Description:
------------
two dots without trailing slash is not counted, it does not work as two
dots

Test script:
---------------
<?php
require_once 'Net/URL2.php';

$base = new Net_URL2('http://???.???/???/zz/..');
echo'<br>';
echo $base->resolve('x.php');



Expected result:
----------------
http://???.???/???/x.php

Actual result:
--------------
http://???.???/???/zz/x.php

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=21013&edit=1