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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat May 18 01:01:33 2024 UTC