Re: [RFC] Binary String Comparison

From: Date: Mon, 18 Aug 2014 12:53:51 +0000
Subject: Re: [RFC] Binary String Comparison
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-76651@lists.php.net to get a copy of this message
hi, On Mon, Aug 18, 2014 at 2:44 PM, Marc Bennewitz <php@mabe.berlin> wrote: > > > On 17.08.2014 22:18, Sara Golemon wrote: >> >> On Sun, Aug 17, 2014 at 12:58 PM, Marc Bennewitz <php@mabe.berlin> 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..? > > > The question isn't "What's wrong with ===, strcmp()?" but "What's > wrong with > ==, <, >?". And the answer is: not strict and why === exists. Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#76651) next »