--TEST--Bug #47771 (Exception during object construction from arg call calls object's destructor)--FILE--<?phpfunctionthrow_exc(){thrownewException('TEST_EXCEPTION');}classTest{publicfunction__construct(){echo'Constr'."\n";}publicfunction__destruct(){echo'Destr'."\n";}}try{$T=newTest(throw_exc());}catch(Exception$e){echo'Exception: '.$e->getMessage()."\n";}?>--EXPECT--Exception: TEST_EXCEPTION