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
 [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: Sun Aug 18 01:01:28 2019 UTC