[PEAR-BUG] Bug #21139 [Com]: compress zero address returns blank

[email protected] ("[email protected]") Fri, 28 Oct 2016 08:52:32 -0400 (EDT)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=21139&edit=1

 ID:               21139
 Comment by:       [email protected]
 Reported By:      phil dot davis at inf dot org
 Summary:          compress zero address returns blank
 Status:           Open
 Type:             Bug
 Package:          Net_IPv6
 Package Version:  1.3.0b2
 PHP Version:      Irrelevant
 Roadmap Versions: 
 New Comment:

Proposed patch with test case at:
https://github.com/phil-davis/Net_IPv6_svn2/pull/3


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

[2016-10-27 08:09:24] phildavis

Description:
------------
Proposed patch is at GitHub commit:
https://github.com/phil-davis/Net_IPv6/commit/638b96a253164b65c63825c38e79812b6c5f448d
and at:
https://svnweb.freebsd.org/ports?view=revision&revision=424752


Test script:
---------------
$x = Net_IPv6::compress("0:0:0:0:0:0:0:0");
var_dump($x);

Expected result:
----------------
$x is "::"

Actual result:
--------------
$x is ""

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


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