Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81270 invoked from network); 7 May 2012 09:33:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2012 09:33:12 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.173 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.160.173 mail-gh0-f173.google.com Received: from [209.85.160.173] ([209.85.160.173:59393] helo=mail-gy0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/37-33304-7D697AF4 for ; Mon, 07 May 2012 05:33:11 -0400 Received: by ghrr14 with SMTP id r14so5254727ghr.18 for ; Mon, 07 May 2012 02:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=E5FDES40c7Eq1oayrix1MH14+0eykba3SU3bpWwN+Lc=; b=MV4fa2uzaJVVrHmBJMRtyuHeJc97roPtUTJ/oV3OThYDjK6qM4ocypt1JVyGayENoh MHmlpfKXO2NZlELgMUKYNxk/T6+/1aSVi+pf1BdsI9GEbH5aTUUAVXFHCMKReWs2w88I ix/WMbQtYfl7i3Chh9R+zXCZTS12F0MaKv7DoPHQbhY83vhrSTUPIv+LnM/JpB31QntI F9QNMrqlZOFud9BUmOWXlKGQJP9QXd0QHuLMnAdf5vxcEC2n9ZC0gl8LCUg6BVxQ52sf q7ywc9raT4C71mj65BD83CigrrHwFli9CDV7otd/VCn9JeJFpdGH1w9XEVACMH4VZPEM 8F6Q== MIME-Version: 1.0 Received: by 10.236.136.33 with SMTP id v21mr18559041yhi.17.1336383188624; Mon, 07 May 2012 02:33:08 -0700 (PDT) Sender: tjerk.meesters@gmail.com Received: by 10.147.55.41 with HTTP; Mon, 7 May 2012 02:33:08 -0700 (PDT) In-Reply-To: References: <4F847B8A.9010007@sugarcrm.com> <733bc8ea59cf6737563a62886e92fcb6.squirrel@www.l-i-e.com> Date: Mon, 7 May 2012 17:33:08 +0800 X-Google-Sender-Auth: RflTxFizBEByeVENPmrHZC-dfxc Message-ID: To: Ferenc Kovacs Cc: Kris Craig , Arvids Godjuks , PHP Internals , Richard Lynch Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [off] PHP: a fractal of bad design From: datibbaw@php.net (Tjerk Anne Meesters) > > I agree with Rasmus (and others) on this one > (http://www.mail-archive.com/internals@lists.php.net/msg57949.html), type > numeric conversion on strings on both sides should only happen if both > strings can be represented as numbers without losing data/precision. > if one or both of the two sides can't be converted to numeric without data > loss, then we should compare them as strings. > the patch from Cataphract (attached at > https://bugs.php.net/bug.php?id=54547) implements this behavior > +1 ... that patch has been lying on a dusty shelf for more than a year =p