Re: Possibility to add finally to try/catch?

From: Date: Tue, 28 Feb 2012 14:38:08 +0000
Subject: Re: Possibility to add finally to try/catch?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-58241@lists.php.net to get a copy of this message
On Tue, Feb 28, 2012 at 3:36 PM, Simon Schick <simonsimcity@googlemail.com>wrote: > Hi, Dmitri > > Great that someone's mentioning it. > I thought about that several times but did not put it in here. > > This is a must-have for me. Really useful if you're working with external > resources (streams, database connection etc). > I used a destructor until now for stuff like that but there are some > situations where a destructor won't be called. > > > http://stackoverflow.com/questions/2385047/when-will-destruct-not-be-called-in-php > > Bye > Simon > > https://bugs.php.net/bug.php?id=36779 -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#58241) next »