Hi,

Both of the following examples used to output the
Exception::__toString() output, which they don't anymore:

$ php-dev -r '$e= new Exception(); echo $e, "\n";'
Object id #1

$ php-dev -r '$e= new Exception(); echo (string)$e, "\n";'
Object id #1

Works fine for userland objects:

$ php-dev -r 'class Foo { function __toString() { return "foo"; }} echo
new Foo(), "\n";'
foo

- Timm

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to