Home >Backend Development >PHP Tutorial >PHP weak type safety issues
1. Defects caused by Hash comparison
When the hash value starts with 0e, comparing == with the numerical value will cause the system to determine that the hash value is 0, as follows
root@kali:~# php -r "var_dump("0e1234"=="0");" bool(true)
The above has introduced the weak type security issues of PHP, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.