Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    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 508 Views 1 Watching
    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

      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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy