php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68290 "finally" keyword barely explained
Submitted: 2014-10-23 07:42 UTC Modified: -
From: jeroen at asystance dot nl Assigned:
Status: Open Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jeroen at asystance dot nl
New email:
PHP Version: OS:

 

 [2014-10-23 07:42 UTC] jeroen at asystance dot nl
Description:
------------
---
From manual page: http://www.php.net/language.exceptions
---

The example (#2) given to illustrate the "finally" keyword works exactly the same (i.e. produces the same output) without finally. Therefore, the documentation does not show any benefit to using it, nor does it make clear how it affects the execution flow.

Fortunately, there are a few user contributed notes which show effects of finally. It should however not be up to users to explain basic syntax, especially since there are apparently some non-intuitive aspects (e.g. finally block being run _after_ return in the try block).


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Thu Sep 20 09:01:25 2018 UTC