AMT>> I *don't* think it's realisitic to make a person explictly cast AMT>> $item->title to a string here. That's not SimpleXML, that's
If it's not a string - definitely it does. AMT>> ConfusingXML, particularly when this works perfectly fine: If you find it confusing - change API of SimpleXML so that it would make $item->title a string. If you put object in something, why don't you expect it be an object? Why it should instantly become string? AMT>> ensure their HTML is valid and to prevent XSS attacks. A non-safe AMT>> lazy default is asking for trouble. So is complicated default behaviour good or is it bad? I consider it be bad - including auto-converting objects to strings. Except, probably, for explicit (string) conversion. -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ +972-3-6139665 ext.109 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php