> -----Original Message----- > From: Rasmus Schultz [mailto:ras...@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 elements are the object's properties. The keys are the member variable names, with a few notable 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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php