Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60515 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42690 invoked from network); 8 May 2012 01:26:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 May 2012 01:26:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=xwisdom@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=xwisdom@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: xwisdom@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:61151] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/21-30976-92678AF4 for ; Mon, 07 May 2012 21:26:01 -0400 Received: by lagy4 with SMTP id y4so977928lag.29 for ; Mon, 07 May 2012 18:25:57 -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 :content-type; bh=OKuGVdh62dwhWLel1P2y5UWz9Dys0dDmjsXLHbFb7ag=; b=QLWWEvzR/CDV3cWS50CSfl2PJrtLug86OAzFv/ZxquZjSDng4f6awmRIoOLNXzIUVq +Ukbygx9Ar2KOW/VUKPDBXXtoDRdAh/Cz43g3uf/j2uILZ0rbHsdx6Eo9XMrhuBtE6Aj fZbmxO897vGB7RVdV+EY5KGhtG3d4WS72t18GDhC8OPHGrrNcAaxEN6L9z/ekHpnQSUc yOIIbIuvUUXg/r4qkACV7/tagoO64JxLvHTfbsar8rnLfu6sJLyUbS2fpCFiz6vRTnR9 zSZ4cbgoUBn6vYS8T2USXGqxfGiaYsyOxag8o0ZsQLxqIngpVq9ZpomGk2uwT8ryx7nO 7XRQ== MIME-Version: 1.0 Received: by 10.152.135.43 with SMTP id pp11mr2979586lab.24.1336440357185; Mon, 07 May 2012 18:25:57 -0700 (PDT) Received: by 10.112.41.233 with HTTP; Mon, 7 May 2012 18:25:57 -0700 (PDT) In-Reply-To: References: <4F847B8A.9010007@sugarcrm.com> <733bc8ea59cf6737563a62886e92fcb6.squirrel@www.l-i-e.com> <4FA7C229.9080901@gmail.com> Date: Mon, 7 May 2012 20:25:57 -0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=f46d043d6567c0e85c04bf7c44bc Subject: Re: [PHP-DEV] [off] PHP: a fractal of bad design From: xwisdom@gmail.com (Raymond Irving) --f46d043d6567c0e85c04bf7c44bc Content-Type: text/plain; charset=ISO-8859-1 I was very surprised when I came across the == issue sometime ago. IMO strings should be compared as strings. They should never be converted to integer. 1=="1" // always convert the number value to a string and then compare it "foo" == 0 // should return false "123abc" == "123nth" // compare as string. Do not convert to numeric values "0"==0 // true 0=="0." // false PHP is great but if we can work together to remove the flaws, then we can make it even greater. We have to leave the past behind us and look at where we want PHP to be in the next 5 years Best regards, --f46d043d6567c0e85c04bf7c44bc--