Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11010 invoked from network); 11 Mar 2008 10:17:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2008 10:17:32 -0000 Authentication-Results: pb1.pair.com header.from=scott.mcnaught@synergy8.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=scott.mcnaught@synergy8.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain synergy8.com designates 202.174.102.11 as permitted sender) X-PHP-List-Original-Sender: scott.mcnaught@synergy8.com X-Host-Fingerprint: 202.174.102.11 au01.synergy8.com Linux 2.6 Received: from [202.174.102.11] ([202.174.102.11:39201] helo=au01.synergy8.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/34-21537-93C56D74 for ; Tue, 11 Mar 2008 05:17:30 -0500 Received: from 124-171-171-76.dyn.iinet.net.au ([124.171.171.76] helo=scott) by au01.synergy8.com with esmtpa (Exim 4.68) (envelope-from ) id 1JZ1Xs-0001eH-Kz for internals@lists.php.net; Tue, 11 Mar 2008 20:17:20 +1000 To: References: <20080311094214.GA4264@redhat.com> In-Reply-To: <20080311094214.GA4264@redhat.com> Date: Tue, 11 Mar 2008 20:17:24 +1000 Message-ID: <000f01c88361$1a230c30$4e692490$@mcnaught@synergy8.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AciDXDr9AFYKNDygQvSy4hy0+wMoKQAA626A Content-Language: en-us X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - au01.synergy8.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - synergy8.com Subject: Comparison: ('*' == 0) ... True or false From: scott.mcnaught@synergy8.com ("Scott McNaught [Synergy 8]") Hey guys, I don=E2=80=99t know whether to post this as a bug or not. But I was = tricked when programming today. It seems that the character "*" is non-strictly equivalent to 0. Is = this the correct behavior or am I missing something? Test case: Shows boolean(true). I was unable to find any documentation as to why this would be the case. Regards, Scott