Hi Marcus, On Sat, Nov 29, 2003 at 06:09:36PM +0100, Marcus Boerger wrote : > Hello Markus, > > this works now. > > regards > marcus (the other one)
Thanks, calling parent::__toString() or accessing $this->string works now. I've found just another scenario which causes a segfault. If you do not return anything from __toString() or return int or an object, php segfaults: <?php class MyException extends Exception { function __toString() { # segfault #return 1; # segfault #return new StdClass # no segfault #return array("foo"); # segfault (no return statement) } } throw new MyException("hmm"); ?> Output: $ php testException.php Segmentation fault - Markus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php