Re: [RFC] Supports 'finally' keyword for PHP exceptions

From: Date: Tue, 24 Jul 2012 17:00:25 +0000
Subject: Re: [RFC] Supports 'finally' keyword for PHP exceptions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-61696@lists.php.net to get a copy of this message
Hi: try{}finally{} implemented, https://github.com/laruence/php-src/commit/90cad0a0001ef48396146c69382a25ebe0a60474 the test scripts in that commit are examples thanks On Tue, Jul 24, 2012 at 7:41 PM, Alexey Zakhlestin <indeyets@gmail.com> wrote: > > On 24.07.2012, at 15:20, Laruence wrote: > >> Hi: >> As the previous threads disscussed, I make a implemention. >> >> here is the RFC: https://wiki.php.net/rfc/finally >> >> any suggestions? > > Will it work without "catch" in your implementation? > > try { > doSomethingDangerous(); > } finally { > doCleanup(); > } -- Laruence Xinchen Hui http://www.laruence.com/

« previous php.internals (#61696) next »