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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 29 = ?
Subscribe to this entry?

 
 [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: Tue May 21 20:01:32 2024 UTC