On Mon, 2004-03-01 at 16:53, [EMAIL PROTECTED] wrote:
> >This should be fixed now. Thanks for the short reproducing script.
> >
> >Andi
> 
> I don't think, that it is fixed in latest cvs.
> Simply changing the script to this, the problem/bug still exists:
[...]

$ cat destruct_segfault.php
<?php
  class test {
    function __destruct() {
      $this->foo = false;
    }
    public function start() {
      throw new Exception();
    }
  }

  function bar() {
    $test = new test();
    $test->start();
  }
  
  bar();
?>
$ php5 destruct_segfault.php 

Fatal error: Uncaught exception 'exception' in
/usr/home/thekid/devel/php/tests/destruct_segfault.php:7
Stack trace:
#0 /usr/home/thekid/devel/php/tests/destruct_segfault.php(13):
test->start()
#1 /usr/home/thekid/devel/php/tests/destruct_segfault.php(16): bar()
#2 {main}
  thrown in /usr/home/thekid/devel/php/tests/destruct_segfault.php on
line 7

Looks fine to me.

- Timm

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

Reply via email to