News for hackers. Stuff that matters.
Re:PHP 8: Before and After by erik_seaberg on Friday October 23, 2020 @03:54PM (#24873256)

  "foo" == TRUE
  "foo" == 0
  TRUE != 0

  NULL == 0
  NULL < -1
  0 > -1
You have to test the simplest expressions because you can't trust the language to do what you wrote.
Re:PHP 8: Before and After by francislavoie on Friday October 23, 2020 @08:53PM (#24875979)
That's why `===` is a thing. But FYI, "foo" == 0 is no longer true in PHP 8: https://3v4l.org/fQLXX RFC is here: https://wiki.php.net/rfc/string_to_number_comparison