Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19718 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36834 invoked by uid 1010); 25 Oct 2005 16:17:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36805 invoked from network); 25 Oct 2005 16:17:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2005 16:17:19 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:56178] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id BF/E5-22886-9755E534 for ; Tue, 25 Oct 2005 11:55:38 -0400 Received: (qmail 5389 invoked from network); 25 Oct 2005 15:55:34 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 25 Oct 2005 15:55:34 -0000 Message-ID: <435E5579.20802@zend.com> Date: Tue, 25 Oct 2005 19:55:37 +0400 User-Agent: Thunderbird 1.4.1 (X11/20051006) MIME-Version: 1.0 To: Ants Aasma CC: internals@lists.php.net References: <425333877.20051025002259@marcus-boerger.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] foreach with null From: antony@zend.com (Antony Dovgal) On 25.10.2005 19:39, Ants Aasma wrote: > It currently is equal: > $ php -r 'var_dump(null == array()); var_dump((array) null);' > bool(true) > array(0) { > } No, there aren't equal. Use === and you'll see the difference. -- Wbr, Antony Dovgal