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
 [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: Wed Jun 26 10:01:30 2024 UTC