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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 16:01:38 2025 UTC