Home >Backend Development >PHP Tutorial >PHP weak type safety issues

PHP weak type safety issues

WBOY
WBOYOriginal
2016-07-28 08:26:44893browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn