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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC