Jon Parise wrote: > Hopefully, this still works (don't have a recent PHP5 build to try): > > print (string)$defect->thrownException(); > > The explicit cast also addresses this case: > > print (string)$defect->thrownException() . "\n";
<?php class Foo { private $bar = 'foobar'; public function __toString() { return $this->bar; } } $foo = new Foo; print $foo; ?> prints Object id #1 -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php