1.2.492. Functioncall Is Global

Marks a functioncall when it is from the global scope. It is not located in another function, class or trait.

<?php

function foo() {
     // This is not a global functioncall
     goo();
}

// This is a global functioncall
foo();

?>

See also class.

1.2.492.1. Connex PHP features

1.2.492.1.1. Specs

Short name

Functions/IsGlobal

Rulesets

All, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud