Re: [PHP-DEV] [RFC] Binary String Comparison
[email protected] (Adrian Guenter)
| Newsgroups | php.internals |
|---|---|
| Message-ID | <CAJ5u6yi4v93nQV25Z-Ei7AtD3_4yQSyd2fnQSk-7G8AqHnz7UA@mail.gmail.com> |
Type juggling is a (major) feature of PHP which would effectively be neutered by this change. As Sara mentioned we already have tools to achieve binary and string comparison. On Aug 17, 2014 4:19 PM, "Sara Golemon" <[email protected]> wrote: > On Sun, Aug 17, 2014 at 12:58 PM, Marc Bennewitz <[email protected]> wrote: > > I've created a draft RFC and patch to change the behavior of non-strict > > string to string comparison to be binary safe (as the strict comparison > > operator does): > > > > https://wiki.php.net/rfc/binary_string_comparison > > > If I understand your goal correctly, you seem to want to change a very > fundamental (and ancient) behavior of the language even though > mechanisms already exist to do what you describe as the "changed > behavior". > > What exactly is wrong with ===, strcmp(), etc..? > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >