|
|
|
|
|
by arp242
778 days ago
|
|
One somewhat famous hidden landmine is in_array('0010e2', ['1e3']); And that will return true, because you forgot the third "strict" parameter. This is really something strict_types could/should have fixed, but it doesn't. You can have code reviews and static analysers and all of that to catch this, but it's definitely a landmine. I've seen some pretty serious CVEs that were fixed just by adding that last parameter to some in_array() call. |
|
Was that everything? You basically state there's a problem because you didn't use the function correctly and language didn't fall head over heels to stop you from doing silly things due to slopiness?
P.I.C.N.I.C.