1.2.354. Directives Usage

This rule lists the directives mentioned in the code. When the directives are accessed in the code, it signals that they must be configured in PHP.ini first.

<?php

//accessing the configuration to change it
ini_set('timelimit', -1);

//accessing the configuration to check it
ini_get('safe_mode');

?>

See also ini_set().

1.2.354.1. Specs

Short name

Php/DirectivesUsage

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

directive

Available in

Entreprise Edition, Community Edition, Exakat Cloud