Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74641 invoked from network); 24 Apr 2013 15:52:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2013 15:52:48 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:60930] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/C2-60231-ECFF7715 for ; Wed, 24 Apr 2013 11:52:47 -0400 Received: from [192.168.2.20] (ppp-188-174-37-44.dynamic.mnet-online.de [188.174.37.44]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 8612565A8B; Wed, 24 Apr 2013 17:52:42 +0200 (CEST) To: Rasmus Schultz Cc: PHP internals In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 24 Apr 2013 17:53:58 +0200 Message-ID: <1366818838.2564.36.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] vsprintf() From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2013-04-24 at 11:45 -0400, Rasmus Schultz wrote: > This is all kinds of wrong: > > http://3v4l.org/UZFME > > So the order in which the properties were defined is the magic that makes > this work. > > Wow. WTF? > > Do I need to explain in detail why this is all kinds of effed up? vsprintf()'s 2nd parameter is an array,so your objectis converted to an array ['str1' => 'foo', 'str2'=>'bar'] and PHP arrays are ordered. johannes