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

Bug #12153 Wrong result on Debian etch
Submitted: 2007-09-30 11:58 UTC Modified: 2007-12-27 18:05 UTC
From: twilo24 Assigned: cconstantine
Status: Closed Package: Net_Ping (version 2.4.2)
PHP Version: 5.2.4 OS: Debian etch
Roadmaps: 2.4.3    
Subscription  


 [2007-09-30 11:58 UTC] twilo24 (Kay Häusler)
Description: ------------ Net_Ping does not parse the ping result correctly on Debian etch if the target host has a reverse DNS entry. Test script: --------------- $ping = Net_Ping::factory(); $ping->setArgs(array('count' => 1)); $test = $ping->ping('www.ct-gzsz.de'); var_dump($test->getTargetIp()); var_dump($test); Expected result: ---------------- string(13) "212.227.85.28" Actual result: -------------- string(12) "twilo-host.d" object(Net_Ping_Result)#2 (11) { ["_icmp_sequence"]=> array(1) { ["85.28):"]=> string(1) "5" } ["_target_ip"]=> string(12) "twilo-host.d" ["_bytes_per_request"]=> string(2) "64" ["_bytes_total"]=> int(128) ["_ttl"]=> string(6) "_seq=1" ["_raw_data"]=> array(6) { [0]=> string(57) "PING www.ct-gzsz.de (212.227.85.28) 56(84) bytes of data." [1]=> string(75) "64 bytes from twilo-host.de (212.227.85.28): icmp_seq=1 ttl=55 time=8.57 ms" [2]=> string(0) "" [3]=> string(38) "--- www.ct-gzsz.de ping statistics ---" [4]=> string(59) "1 packets transmitted, 1 received, 0% packet loss, time 0ms" [5]=> string(49) "rtt min/avg/max/mdev = 8.572/8.572/8.572/0.000 ms" } ["_sysname"]=> string(5) "linux" ["_round_trip"]=> array(3) { ["min"]=> string(5) "8.572" ["avg"]=> string(5) "8.572" ["max"]=> string(5) "0.000" } ["_transmitted"]=> string(1) "1" ["_received"]=> string(1) "1" ["_loss"]=> int(0) }

Comments

 [2007-10-01 12:40 UTC] twilo24 (Kay Häusler)
> -n Numeric output only. No attempt will be made to lookup symbolic > names for host addresses. --------------- $ping = Net_Ping::factory(); $ping->setArgs(array('count' => '1 -n')); $test = $ping->ping('www.ct-gzsz.de'); var_dump($test->getTargetIp()); --------------- string(13) "212.227.85.28"
 [2007-12-27 18:05 UTC] cconstantine (Craig Constantine)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.