php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70074 "Finally" clause after try throws syntax error
Submitted: 2015-07-14 16:56 UTC Modified: 2015-07-26 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: banka5 at inbox dot lv Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 7.0.0beta1 OS: OSX 10.10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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 20:01 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2015-07-14 20:01 UTC] kalle@php.net
I cannot reproduce this on Windows with any of the PHP7 releases or current master from git, did you compile it yourself and is the language scanners/parsers regenerated?
 [2015-07-26 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2015-07-30 21:53 UTC] banka5 at inbox dot lv
I used php from here http://php-osx.liip.ch/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC