Req #32100 [Com]: Request 'finally' support for exceptions
From: php at techdp dot co dot uk Date: Sun, 20 Mar 2011 09:44:01 +0000 Subject: Req #32100 [Com]: Request 'finally' support for exceptions References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-159637@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=32100&edit=1
ID: 32100
Comment by: php at techdp dot co dot uk
Reported by: ceefour at gauldong dot net
Summary: Request 'finally' support for exceptions
Status: Closed
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: *
PHP Version: 5.*
Block user comment: N
Private report: N
New Comment:
+++ for finally in PHP. It is one of the most elegant and expressive
keywords in modern programming, allowing precise capture of error
handling semantics, and easy authorship of bug-free code!
Previous Comments:
------------------------------------------------------------------------
[2011-02-19 17:34:09] gunter at web dot com
++ for finally in PHP.
------------------------------------------------------------------------
[2011-02-17 22:02:08] attila dot m dot magyar at gmail dot com
I agree with the previous comments, a 'finally' keyword would be nice
and useful when it fits to the conventions and standards applied in a
project. If it's not hairy to implement and wouldn't introduce
instability in the core, I'd reassure PHP developers to add this feature
in a future release.
Best regards,
Athos
------------------------------------------------------------------------
[2011-02-17 17:09:54] tyra3l at gmail dot com
sorry, I screwed up part of my comment when editing:
"and he didn't the first which closed the"
and he didn't explained in his comment why is it rejected, aside the
fact that we (who?) dont't need it
Tyrael
------------------------------------------------------------------------
[2011-02-17 16:54:06] tyra3l at gmail dot com
+1 for adding the feature.
I'm a little bit disappointed that there are no comment from the php
core contributors on this issue except helly, and he didn't the first
which closed the, I could accept the fact, that this cannot be done by
technical reasons, but AFAIK it was rejected, because the core devs at
that time didn't used or understood the finally, so they said, that
nobody needs that.
http://marc.info/?l=php-internals&m=96773381231437&w=2
times has changed, try doesn't leaks memory nowdays (or does it?),
people got smarter, machines faster, maybe we could reconsider this
feature, and reject it based on the current situation, not from a vague
discussion from 10 years ago.
Tyrael
------------------------------------------------------------------------
[2011-02-17 14:14:33] hardyanto dot donny at gmail dot com
"finally" is very useful for using ADODB:
$db->StartTransaction();
try{
....
... any exception can occur here...
....
} finally {
$db->CompleteTrans();
}
Even there is exception occur in try block, the CompleteTrans() always
be
called.
------------------------------------------------------------------------
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
http://bugs.php.net/bug.php?id=32100
--
Edit this bug report at http://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 (#159637) | next » |
|---|