Alexandre Sinicio

Just an update to a five-year-old post: just got kicked in the ass by the exact same problem on PHP7.4.

One would expect that the $key/$value vars on a foreach loop should fall out of scope after its done.
Or at the very least, when a foreach loop is created, either an error would be thrown when trying to use already-existing-vars for key/val or the variables would be restarted from scratch (any old ones would automatically be unset).

Tue, 23/03/2021 - 11:21 Permalink

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA