php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #62513 Disable goto
Submitted: 2012-07-09 01:27 UTC Modified: 2012-07-09 03:46 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: santec at riseup dot net Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: santec at riseup dot net
New email:
PHP Version: OS:

 

 [2012-07-09 01:27 UTC] santec at riseup dot net
Description:
------------
I hope that you will introduce some way to disable goto. The reason is that my users can execute untrusted code, and in some cases I have to debug it; but goto in some cases makes debugging way too long.
The best solution (for me) would be a INI option that can not be changed at runtime, to suppress goto. Or you could add a compile option to exclude goto.
Thanks.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-09 03:46 UTC] rasmus@php.net
No chance. And it isn't an unrestricted goto, so it is no harder to debug than 
multi-level breaks/continues and you don't seem to have a problem with those.
 [2012-07-09 03:46 UTC] rasmus@php.net
-Status: Open +Status: Wont fix
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 00:01:31 2025 UTC