ID:          43324
 Updated by:  [EMAIL PROTECTED]
 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

Reply via email to