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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php