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

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: Sat Dec 21 11:01:30 2024 UTC