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_Traceroute » Bug #1128

Undefined offset in $tempparts array, _parseResultWindows

Details

Submitted2004-04-04 15:59 UTC
Fromemmanuel at drouet-web dot com
StatusNo Feedback
PackageNet_Traceroute
PHP Version4.3.4
OSWindows 2000
Roadmaps(Not assigned)

Comments

[2004-04-04 15:59 UTC] emmanuel at drouet-web dot com

Description:
------------
When executing a simple Traceroute, Notice report at line 492 :
PHP Notice: Undefined offset: 6 in C:\php\pear\Net\Traceroute.php on line 492

Adding :
$searchIdx = ($searchIdx == count($tempparts)) ? $searchIdx-1 : $searchIdx;
After :
two loops at 485, 489

Reproduce code:
---------------
The sample.php from the package, docs directory
I've only change target example.com to an existing target