Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52552 invoked from network); 18 Aug 2014 12:53:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Aug 2014 12:53:55 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.53 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.53 mail-qa0-f53.google.com Received: from [209.85.216.53] ([209.85.216.53:46721] helo=mail-qa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/A3-31658-167F1F35 for ; Mon, 18 Aug 2014 08:53:54 -0400 Received: by mail-qa0-f53.google.com with SMTP id v10so4280237qac.26 for ; Mon, 18 Aug 2014 05:53:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wfQ21L2iLkO0N8Jj//W7dSEFRsizFL5IzkirFzXmCtM=; b=kn4eORhgU8DoZVQtCfAX0+ORSkKApMg7Pcy9HBd90ggcxXH3eQm8BqIGjp7+BbK9Km CVXByNhpqSdGhd7VOvtZ4cVhFrmdjJ6Uk508qY4jr8vfwIAxc4GxVUE0SgxxQ3AK2LZP oxgWdsFTF0z/5HWjwhzbvKn8rr/CukcO+9nG+qAzL8PdorHpxH1RitWX7Y2gd/jtKHNi UZHKAg2vX+itPZaY8jwVumC2KHjqdzgoDvSqX1Wgr0LZ94CRQYseONTeU5tQGJBcbJtq 3bU7akFoKR5AweClQ2xFXE5D+FAHNiahy+z0d9O7By9HE47WadQTeYuWG8e23ZhT8h6C ZhuA== MIME-Version: 1.0 X-Received: by 10.224.75.73 with SMTP id x9mr17656652qaj.63.1408366431205; Mon, 18 Aug 2014 05:53:51 -0700 (PDT) Received: by 10.140.24.54 with HTTP; Mon, 18 Aug 2014 05:53:51 -0700 (PDT) In-Reply-To: <53F1F534.50109@mabe.berlin> References: <53F1094B.4040100@mabe.berlin> <53F1F534.50109@mabe.berlin> Date: Mon, 18 Aug 2014 14:53:51 +0200 Message-ID: To: Marc Bennewitz Cc: Sara Golemon , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Binary String Comparison From: pierre.php@gmail.com (Pierre Joye) hi, On Mon, Aug 18, 2014 at 2:44 PM, Marc Bennewitz wrote: > > > On 17.08.2014 22:18, Sara Golemon wrote: >> >> On Sun, Aug 17, 2014 at 12:58 PM, Marc Bennewitz 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