php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70075 "Finally" clause after try throws syntax error
Submitted: 2015-07-14 16:56 UTC Modified: 2015-07-14 17:05 UTC
From: banka5 at inbox dot lv Assigned:
Status: Duplicate Package: Compile Failure
PHP Version: 7.0.0beta1 OS: OSX 10.10
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: banka5 at inbox dot lv
New email:
PHP Version: OS:

 

 [2015-07-14 16:56 UTC] banka5 at inbox dot lv
Description:
------------
I get "Syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH)" error when running my code on 7.0.0-beta1, while the same code works fine on 5.6.8.

Tested on Ubuntu Server 14.04.2 LTS as well - same problem. 

Test script:
---------------
try {
    // Some code
} finally {
    // Some code
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-14 17:05 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2015-07-14 17:05 UTC] nikic@php.net
Duplicates bug #70074.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 17:01:26 2019 UTC