#44910 [Opn->Asn]: Restrict GOTOs from/to try catch blocks

From: Date: Sun, 04 May 2008 12:23:17 +0000
Subject: #44910 [Opn->Asn]: Restrict GOTOs from/to try catch blocks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-124710@lists.php.net to get a copy of this message
ID: 44910 Updated by: colder@php.net Reported By: colder@php.net -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: Irrelevant PHP Version: 5.3CVS-2008-05-04 (CVS) -Assigned To: +Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2008-05-04 12:22:38] colder@php.net Description: ------------ Currently, things like that are allowed: try { ... plop: } catch(Exception $e) { goto plop; } try { } catch(Exception1 $e) { goto plop; } catch(Exception2 $e) { plop: } GOTOs shouldn't be allowed in those cases. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44910&edit=1

« previous php.bugs (#124710) next »