Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.3.0b4

Bug #13006 Compressing a IPv6 with mixed IPv4
Submitted: 2008-01-30 15:20 UTC
From: seg7 Assigned: alexmerz
Status: Closed Package: Net_IPv6 (version 1.1.0RC3)
PHP Version: 5.2.5 OS: Debian
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 41 - 31 = ?

 
 [2008-01-30 15:20 UTC] seg7 (Sergio Vale)
Description: ------------ Compressing an IPv6 address with mixed IPv4 address gives wrong result. Test script: --------------- echo Net_IPv6::compress(Net_IPv6::uncompress("2001:690:22c0:201::193.136.195.195")); Expected result: ---------------- 2001:690:22c0:201::193.136.195.195 Actual result: -------------- 2001:690:22c0:201::36195195

Comments

 [2008-02-01 13:38 UTC] alexmerz (Alexander Merz)
I will extend the functionality to take care of an IPv4 part during the next days.
 [2008-02-23 16:40 UTC] arekm (Arkadiusz Miskiewicz)
Also fails with such one: require_once 'Net/IPv6.php'; $ip = "::ffff:192.168.1.1"; print "test1\n"; print_r(Net_IPv6::checkIPv6($ip)); print "\ntest2\n"; print_r(Net_IPv6::compress($ip)); [arekm@tarm ~]$ php a.php test1 1 test2 [arekm@tarm ~]$ compress gives empty result.
 [2017-07-27 21:45 UTC] alexmerz (Alexander Merz)
-Status: Analyzed +Status: Closed