Substring comparison flaws with hex characters
Stevehans opened this issue · 0 comments
Stevehans commented
Subject | Details |
---|---|
Plugin | Php Inspections (EA Ultimate), 2023.1 |
Language level | e.g. PHP 7.3 |
Current behaviour
if(substr($fileContents,0,3) === "\xff\xd8\xff")
Reports that the length doesn't match
Expected behaviour
Should not complain as the length is correct.