Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87495 invoked by uid 1010); 26 Oct 2005 21:24:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87480 invoked from network); 26 Oct 2005 21:24:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2005 21:24:42 -0000 X-Host-Fingerprint: 70.85.46.36 unknown Received: from ([70.85.46.36:45631] helo=prohost.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 37/4C-22886-914FF534 for ; Wed, 26 Oct 2005 17:24:42 -0400 Received: (qmail 10523 invoked from network); 26 Oct 2005 21:24:38 -0000 Received: from softdnserror (HELO ?192.168.1.101?) (72.59.8.85) by prohost.org with SMTP; 26 Oct 2005 21:24:38 -0000 Message-ID: <435FF414.3000303@prohost.org> Date: Wed, 26 Oct 2005 17:24:36 -0400 User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Beaver CC: Jani Taskinen , internals@lists.php.net References: <4e36d31d0510261018t639c472x9efaaf7af61a9ddb@mail.gmail.com> <435FDC41.30207@php.net> In-Reply-To: <435FDC41.30207@php.net> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: foreach with null From: ilia@prohost.org (Ilia Alshanetsky) Greg Beaver wrote: > amen, this behavior makes no sense even though sizeof() is an alias to > count(). sizeof('this') and sizeof('this long thing') are both 1, which > makes no sense. I would go so far as to say a E_NOTICE is more > appropriate than E_STRICT - you should only be using count() for > arrays/objects. Actually this result makes perfect sense since type conversion changes string into array('your string') and does a count of that, which is 1. Ilia