1.2.433. Exit Without Argument

This rule reports usage of die and exit without arguments, nor parenthesis. These commands are not functions, and are allowed to be used without parenthesis: by default, they use the 0 status.

<?php

exit;

die;

?>

1.2.433.1. Specs

Short name

Php/ExitNoArg

Rulesets

All, Analyze, Changed Behavior

Exakat since

2.6.6

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Features

exit

Available in

Entreprise Edition, Exakat Cloud