On Thu, 2004-02-26 at 23:41, Stefan Walk wrote:
> Hi, after a cvs update i get a segfault with this script:
[...]
This sourcecode (which is the same except that there is no code in the
destructor) prints out:
Fatal error: Exception thrown without a stack frame in Unknown on line 0
-- snip --
<?php
class test {
function __destruct() {
}
public function start() {
throw new Exception();
}
}
$test = new test();
$test->start();
?>
-- snip --
>From zend_exceptions.c:
if (!EG(current_execute_data)) {
zend_error(E_ERROR, "Exception thrown without a stack frame");
}
This might help tracking down the problem.
/ Timm
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php