1.2.214. Conditioned Function

Indicates if a function is defined only if a condition is met.

<?php

// This is a conditioned function.
// it only exists if the PHP binary doesn't have it already.
if (!function_exists('join')) {
    function join($glue, $array) {
        return implode($glue, $array);
    }

}
?>

1.2.214.1. Specs

Short name

Functions/ConditionedFunctions

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

function

Available in

Entreprise Edition, Community Edition, Exakat Cloud