• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

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

Scheduled Pinned Locked Moved 2.5 Development Snapshots (Retired)
1 Posts 1 Posters 352 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    solluxcaptor
    last edited by Nov 28, 2020, 2:57 PM

    Here is that line in question (top being 614):

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

    While IPv6 is working properly, this appears in the development snapshot builds (latest as of writing). This error repeats infinitely in my log file, it appears to be code to turn a shorter IPv6 IP into one with all 0s. But unsure why I keep getting this message other than what it says. Let me know what else I can do to assist / upload - or if there is a way to allow this file to regenerate. I seem to have it regardless of my clean installation(s). Nothing out of ordinary in network config - as this is for my home net.

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received