PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_IPv6 » Bug #4977

Net_IPv6::compress() breaks on already-compressed addresses

Details

Submitted2005-08-03 02:50 UTC
Frompvenegas at gmail dot com
Assignedalexmerz
StatusClosed
PackageNet_IPv6
PHP Version5.0.4
OSFreeBSD 5.3-RELEASE #0
Roadmaps(Not assigned)

Comments

[2005-08-03 02:50 UTC] pvenegas at gmail dot com

Description:
------------
Error when running Net_IPv6::compress() on an already compressed IPv6 address string.

Test script:
---------------
<?php
include "/usr/local/lib/php/pear/Net/IPv6.php";

echo Net_IPv6::compress("2001:ec8:1:1:1:1:1:1") . "\n";
?>

Expected result:
----------------
2001:ec8:1:1:1:1:1:1

Actual result:
--------------
2:01:ec8:1:1:1:1:1:1