Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Multi-level breaks are difficult to grok. PHP 5.3 introduces the goto statement as a cleaner alternative: http://php.net/manual/en/control-structures.goto.php
There are three places in core where we use multi-level breaks. I have replaced all of them with gotos and the code is now much cleaner.
Comment | File | Size | Author |
---|---|---|---|
no-multi-level-breaks.patch | 3.07 KB | jbrown | |
Comments
Comment #2
jbrown CreditAttribution: jbrown commentedDoes the bot need a newer APC?
Comment #3
jbrown CreditAttribution: jbrown commentedno-multi-level-breaks.patch queued for re-testing.
Comment #7
jhedstromNot sure why this was marked as a bug. There's probably still something to be said for this approach though.