Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33993 invoked from network); 26 Sep 2014 07:01:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 07:01:15 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.99 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.99 smtp99.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.99] ([108.166.43.99:35291] helo=smtp99.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/F0-27411-83F05245 for ; Fri, 26 Sep 2014 03:01:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id EC1901800FC; Fri, 26 Sep 2014 03:01:08 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 974CC180124; Fri, 26 Sep 2014 03:01:08 -0400 (EDT) X-Sender-Id: smalyshev@sugarcrm.com Received: from Stass-MacBook-Pro.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net [108.66.6.48]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA) by 0.0.0.0:465 (trex/5.2.13); Fri, 26 Sep 2014 07:01:08 GMT Message-ID: <54250F32.4080807@sugarcrm.com> Date: Fri, 26 Sep 2014 00:01:06 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Leigh CC: PHP Internals References: <54248E27.1040206@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Fix list() behavior inconsistency From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Why do array_* functions not treat strings as arrays of bytes? How that's related? We're not talking about array_* functions, we're talking about list() operator. > get busy :) - If we want to say "yea list() should work with strings", > but no other array functions should work with strings, it seems very > odd to me. It's as odd as [] working with strings but -> not. Those are different things, so they work differently. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/