Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78510 invoked from network); 24 Apr 2013 16:31:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2013 16:31:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=richard.bradley@softwire.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=Richard.Bradley@softwire.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain softwire.com designates 195.130.217.76 as permitted sender) X-PHP-List-Original-Sender: richard.bradley@softwire.com X-Host-Fingerprint: 195.130.217.76 eu-smtp-2.mimecast.com Linux 2.6 Received: from [195.130.217.76] ([195.130.217.76:29461] helo=eu-smtp-1.mimecast.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/83-60231-8D808715 for ; Wed, 24 Apr 2013 12:31:22 -0400 Received: from smtp.softwire.com (217.20.22.70 [217.20.22.70]) (Using TLS) by uk-mta-6.uk.mimecast.lan; Wed, 24 Apr 2013 17:31:16 +0100 Received: from VEXCHANGE10.zoo.lan ([169.254.1.114]) by VEXCHANGE10.zoo.lan ([169.254.1.114]) with mapi id 14.02.0342.003; Wed, 24 Apr 2013 17:31:15 +0100 To: Rasmus Schultz , PHP internals Thread-Topic: [PHP-DEV] vsprintf() Thread-Index: AQHOQQhaa21hCv9PCkaGrM11HEpNzpjlkB/Q Date: Wed, 24 Apr 2013 16:31:15 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.210.11.113] x-pp-processed: __PP2__318564c6-eb00-4118-ba4c-be920aac5003 MIME-Version: 1.0 X-MC-Unique: 9c1814b9-69e2-4296-ab07-03b1aef32ef7-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Subject: RE: [PHP-DEV] vsprintf() From: Richard.Bradley@softwire.com (Richard Bradley) > -----Original Message----- > From: Rasmus Schultz [mailto:rasmus@mindplay.dk] > Sent: 24 April 2013 16:45 > To: PHP internals > Subject: [PHP-DEV] vsprintf() > > 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? Yes, please. What's the big deal here? If you coerce an object to an array, you get the = public properties in the order in which they were declared. See http://www.php.net/manual/en/language.types.array.php "If an object is converted to an array, the result is an array whose eleme= nts are the object's properties. The keys are the member variable names, with a few n= otable exceptions: ...." What was the point of your email? Did you hope for some action to arise, or= are you just letting off steam? Best, Rich Richard Bradley Tel : 020 7485 7500 ext 3230 | Fax : 020 7485 7575 softwire Sunday Times Best Small Companies 2012 - 6th in the UK Web : www.softwire.com | Addr : 325 Highgate Studios, 53-79 Highgate Road, = London NW5 1TL Softwire Technology Limited. Registered in England no. 3824658. Registered = Office : 13 Station Road, London N3 2SB