Project

General

Profile

Actions

Bug #11117

closed

Net/ipv6.php: str_repeat(): Second argument has to be greater than or equal to 0 in /usr/local/share/pear/Net/IPv6.php on line 614

Added by Andrew Appel almost 5 years ago. Updated almost 5 years ago.

Status:
Not a Bug
Priority:
Normal
Assignee:
-
Category:
PHP Interpreter
Target version:
-
Start date:
11/30/2020
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.5.x
Affected Architecture:
amd64

Description

PHP Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /usr/local/share/pear/Net/IPv6.php on line 614

This repeats infinitely in my log file, when looking at the PHP file I don't know enough about programming to fix the second argument on line 614, top line below, and included 615, 616 & 617:

$fill = str_repeat(':0:', 6-$c2-$c1);

$uip = str_replace('::', $fill, $uip);

$uip = str_replace('::', ':', $uip);

I have included the crash report as well as the original file in question, and a .save variant I discovered today in same directory. Thanks all


Files

PHP_errors (1).log (382 KB) PHP_errors (1).log Error log in question Andrew Appel, 11/30/2020 11:34 AM
IPv6.php (26.1 KB) IPv6.php Current problematic referenced file Andrew Appel, 11/30/2020 11:39 AM
IPv6.php.save (26.1 KB) IPv6.php.save I found this in directory also, untested and unsure if any different Andrew Appel, 11/30/2020 11:39 AM
Actions

Also available in: Atom PDF