Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16024 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55342 invoked by uid 1010); 18 Apr 2005 20:05:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 55327 invoked from network); 18 Apr 2005 20:05:22 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 20:05:22 -0000 X-Host-Fingerprint: 64.233.170.202 rproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.170.202:53794] helo=rproxy.gmail.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id E3/F7-18700-00314624 for ; Mon, 18 Apr 2005 16:05:20 -0400 Received: by rproxy.gmail.com with SMTP id b11so983155rne for ; Mon, 18 Apr 2005 13:05:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cp+mDTEFmYtWtHOFD0cIfLxUUNMn0Gpn8XPjS93S0CR9P1jUxbMUee4vJ9Maz6iFIL88Qn76f4XpjBQvTx+8pg526pY8pHOYQ49SiFzCI48rcdoQorrZgiR7F6Lfd4nGiNv4MM+sq6xkFH7xcNgN39FIP0hpQJDhVU0i/BWz1PU= Received: by 10.38.74.31 with SMTP id w31mr6330058rna; Mon, 18 Apr 2005 13:05:18 -0700 (PDT) Received: by 10.38.9.78 with HTTP; Mon, 18 Apr 2005 13:05:18 -0700 (PDT) Message-ID: <3c4c8fa605041813052e034f35@mail.gmail.com> Date: Tue, 19 Apr 2005 03:05:18 +0700 Reply-To: garbageman@gauldong.net To: Sara Golemon Cc: internals@lists.php.net In-Reply-To: <013a01c5444f$fc5f0d00$5c8be5a9@ohr.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3c4c8fa60504181146526b0a84@mail.gmail.com> <20050418185855.94161.qmail@lists.php.net> <3c4c8fa605041812285af6e888@mail.gmail.com> <013a01c5444f$fc5f0d00$5c8be5a9@ohr.berkeley.edu> Subject: Re: [PHP-DEV] Re: == and === From: gauldong@gmail.com (Hendy Irawan) On 4/19/05, Sara Golemon wrote: > > > > 1 > > > > > > (nothing, false) > > > > > > 1 > > > > That confuses me more (but understandable, and thank God PHP behave > > this way)... I thought 'asdasd' is 0 when [implicitly] converted to > > int [for comparison]? I guess I never knew PHP well :-( > > > That would be the 'Roughly Speaking' and 'not precisely how the engine > handles it internally' parts. >=20 > In the case of string to string comparison there must be at least one dig= it > involved at the start of the string (or a plus/minus sign followed by > digits, etc...) in order to qualify as a numeric string. I don't see this is the case: (false) (false) Isn't '0asdkoasdk' a numeric string? However: 1 (this is expected, although for the $password case, it can lead to security holes). More niceties: 1 1 (false) Programming in PHP can be a lot of fun! ;-) --=20 Hendy Irawan http://www.gauldong.net http://dev.gauldong.net