On Sun, Dec 14, 2003 at 03:41:10PM +0100, Sebastian Bergmann wrote:

> > It is supported by "print" and for internal extensions such as
> > SimpleXML which require this.
> 
>   How is it supported by "print" when
> 
>     print $defect->thrownException()
> 
>   does not work but the object returned from thrownException() has a
>   __toString() method?
 
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";

-- 
Jon Parise ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/)

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

Reply via email to