Req #32100 [ReO]: Request 'finally' support for exceptions
From: ceefour at gauldong dot net Date: Fri, 03 Aug 2012 04:38:39 +0000 Subject: Req #32100 [ReO]: Request 'finally' support for exceptions References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-172406@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=32100&edit=1
ID: 32100
User updated by: ceefour at gauldong dot net
Reported by: ceefour at gauldong dot net
Summary: Request 'finally' support for exceptions
Status: Re-Opened
Type: Feature/Change Request
Package: *General Issues
Operating System: *
PHP Version: 5.*
Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Finally! :-)
Thanks a lot
Previous Comments:
------------------------------------------------------------------------
[2012-07-26 02:10:42] laruence@php.net
RFC complete, https://wiki.php.net/rfc/finally
------------------------------------------------------------------------
[2012-07-25 23:44:07] pravdin at vl dot ru
We are writing large web application on PHP using the OOP and programming
patterns. Exceptions are not only error reporting mechanism but also very
important program flow mechanism. So, try...finally is commonly needed. Please add
this feature. I know, PHP is not OOP, but I think there is no reason to limit
developers needs, especially when this needs are not for just a few single
developers.
------------------------------------------------------------------------
[2012-07-24 10:59:57] laruence@php.net
I will try to make a implemention.
------------------------------------------------------------------------
[2012-07-18 23:13:07] pieceofchum at yahoo dot com
Hello I am a Java developer and would like to move over to PHP for my current personal projects. The
use of finally in Java is extremely powerful as it ensures that a unit of work that uses any
resources that need to be managed are guaranteed to be handled before leaving the method even whent
here is a catch clause. This has nothing to do with control flow and exception handling it has
everything to do with contract based blocks of code in fact finally is a totally unique construct
which greatly simplifies algorithms where one needs a guarantee of certain code running (usually to
handle external resources) no matter what happens outside of course of an error (error defined as
something that breaks the interpreter/compiler/environmen). It is not a mistake of design but a vast
improvement in code clarity and application of the DRY principle which is correct programming and
has nothing at all to do with improper control flow. It is not a mistake that it is in some form in
Python, Ruby, Java etc... Please please recondsider adding this extremely important construct to
PHP.
Thanks for your consideration in this matter
------------------------------------------------------------------------
[2012-07-05 20:17:57] angelo at camargo dot ws
++ for finally in PHP
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=32100
--
Edit this bug report at https://bugs.php.net/bug.php?id=32100&edit=1
Thread (53 messages)
- #32100 [Opn]: Request 'finally' support for exceptions
- #32100 [Opn]: Request 'finally' support for exceptions
- #32100 [Opn->Csd]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Csd->ReO]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [ReO]: Request 'finally' support for exceptions
- Req #32100 [ReO]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [ReO->Csd]: Request 'finally' support for exceptions
- Req #32100 [Com]: Request 'finally' support for exceptions
- Req #32100 [Csd]: Request 'finally' support for exceptions
| « previous | php.bugs (#172406) | next » |
|---|