php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51164 goto parser error
Submitted: 2010-02-27 07:29 UTC Modified: 2010-02-27 08:11 UTC
From: vijayaragunathan at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2SVN-2010-02-27 (SVN) OS: xp
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: vijayaragunathan at gmail dot com
New email:
PHP Version: OS:

 

 [2010-02-27 07:29 UTC] vijayaragunathan at gmail dot com
Description:
------------
<?php
goto a;
echo 'Foo';
 
a:
echo 'Bar';
?>


Reproduce code:
---------------
---
From manual page: http://www.php.net/control-structures.goto
---


Expected result:
----------------
The above example will output:

Bar



Actual result:
--------------
Parse error: parse error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-27 08:11 UTC] rasmus@php.net
goto was introduced in 5.3.  You are using 5.2.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 22:01:33 2024 UTC