#43324 [Opn->Bgs]: Label scope
| From: | derick@php.net | Date: | Sun, 18 Nov 2007 17:00:23 +0000 |
| Subject: | #43324 [Opn->Bgs]: Label scope | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119787@lists.php.net to get a copy of this message | ||
ID: 43324
Updated by: derick@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
PHP Version: 6CVS-2007-11-18 (snap)
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
There is no label scope...
Previous Comments:
------------------------------------------------------------------------
[2007-11-18 15:17:59] felipensp at gmail dot com
Description:
------------
Only occur error when inside a block. (e.g. if, empty block, ...)
Reproduce code:
---------------
<?php
$i = 0;
a:
// No error
class foo { }
// Produces error
// Fatal error: Cannot redeclare class foo
/*
{
class foo { }
}
*/
if ($i++ != 4) goto a;
Expected result:
----------------
Error ?
Actual result:
--------------
Error whenever declaring inside a block.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43324&edit=1