Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88006 invoked from network); 28 Feb 2012 14:38:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2012 14:38:13 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:49076] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 16/11-17048-2D6EC4F4 for ; Tue, 28 Feb 2012 09:38:10 -0500 Received: by qaui11 with SMTP id i11so1666858qau.8 for ; Tue, 28 Feb 2012 06:38:08 -0800 (PST) Received-SPF: pass (google.com: domain of tyra3l@gmail.com designates 10.224.212.134 as permitted sender) client-ip=10.224.212.134; Authentication-Results: mr.google.com; spf=pass (google.com: domain of tyra3l@gmail.com designates 10.224.212.134 as permitted sender) smtp.mail=tyra3l@gmail.com; dkim=pass header.i=tyra3l@gmail.com Received: from mr.google.com ([10.224.212.134]) by 10.224.212.134 with SMTP id gs6mr13859104qab.32.1330439888284 (num_hops = 1); Tue, 28 Feb 2012 06:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xtmLQatAslXHmWfUO59f2p0ShtP/euveKgS6pkzf/Xk=; b=f+mkSJ/nfaHzC6b625wsZBzmmvH+RxdMQxuJzGBRu5AZyflWJ9Ok/s1EEqmICn7oln /R1mRMTKU9rPKg/+JjxtQhQmBCTAyfUE5jEgdEBKCDYR0fwGfTRVbE5E/rHRSnWMTHfu qWgZp90olaWC2bVspRyhJajUF9yJclhhjkqDg= MIME-Version: 1.0 Received: by 10.224.212.134 with SMTP id gs6mr11699843qab.32.1330439888233; Tue, 28 Feb 2012 06:38:08 -0800 (PST) Received: by 10.229.232.207 with HTTP; Tue, 28 Feb 2012 06:38:08 -0800 (PST) In-Reply-To: References: <01a901ccf622$0645f230$12d1d690$@alliantinternet.com> Date: Tue, 28 Feb 2012 15:38:08 +0100 Message-ID: To: Simon Schick Cc: Dmitri Snytkine , Paul Dragoonis , Kiall Mac Innes , internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf300fac4deee4e904ba072cde Subject: Re: [PHP-DEV] Possibility to add finally to try/catch? From: tyra3l@gmail.com (Ferenc Kovacs) --20cf300fac4deee4e904ba072cde Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 28, 2012 at 3:36 PM, Simon Schick 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-call= ed-in-php > > Bye > Simon > > https://bugs.php.net/bug.php?id=3D36779 --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --20cf300fac4deee4e904ba072cde--