Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36890 invoked from network); 11 Mar 2008 11:27:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Mar 2008 11:27:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:41664] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/C9-21537-4BC66D74 for ; Tue, 11 Mar 2008 06:27:50 -0500 Received: from [192.168.3.91] (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTP id EE4486400F0; Tue, 11 Mar 2008 14:27:45 +0300 (MSK) Message-ID: <47D66CA2.7000705@daylessday.org> Date: Tue, 11 Mar 2008 14:27:30 +0300 User-Agent: Thunderbird 2.0.0.9 (X11/20071114) MIME-Version: 1.0 To: "Scott McNaught [Synergy 8]" CC: internals@lists.php.net References: <20080311094214.GA4264@redhat.com> <000f01c88361$1a230c30$4e692490$@mcnaught@synergy8.com> In-Reply-To: <000f01c88361$1a230c30$4e692490$@mcnaught@synergy8.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Comparison: ('*' == 0) ... True or false From: tony@daylessday.org (Antony Dovgal) On 11.03.2008 13:17, Scott McNaught [Synergy 8] wrote: > Hey guys, > > I don’t 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? http://www.php.net/manual/en/language.operators.comparison.php Ask such questions in php-general@, please. Thank you. -- Wbr, Antony Dovgal