[php-src] Issue #8005: in_array string checking error......
| From: | damianwadley | Date: | Thu, 27 Jan 2022 04:50:11 +0000 |
| Subject: | [php-src] Issue #8005: in_array string checking error...... | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239318@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8005
Comment Author: damianwadley
The function is behaving exactly as intended, as designed, and as documented: by default it performs
loose comparisons against array items, and thus it would return true for your inputs because
"any content" is loosely equal to 0. If you want strict
comparisons instead of loose comparisons then you must provide the third argument.