1.2.508. Goto Names

This rule lists of all goto labels used in the code. The labels must match a goto call, although it is possible to create a label without a goto.

<?php

GOTO_NAME_1:

// reports the usage of GOTO_NAME_1
goto GOTO_NAME_1;

UNUSED_GOTO_NAME_1:

?>

See also goto.

1.2.508.1. Specs

Short name

Php/Gotonames

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

goto, label

ClearPHP

no-goto

Available in

Entreprise Edition, Community Edition, Exakat Cloud