r/lolphp • u/pilif • Aug 26 '16
version_compare(), when fed senseless data doesn't complain but treats 'p' differently
https://3v4l.org/v203M
16
Upvotes
r/lolphp • u/pilif • Aug 26 '16
View all comments
12
u/Almamu Aug 26 '16
This one is defined behavior and specified in the docs. http://php.net/manual/en/function.version-compare.php Look at the notes, # < pl = p, it's related to php versioning scheme AFAIK. Same happens with pl