1.2.1323. Use Cli

Signal the usage of code in CLI mode, through the usage of $argv and $argc variables, or the getopt() function.

<?php

// Characteristics of CLI usage
getopt("abcd");

?>

1.2.1323.1. Connex PHP features

1.2.1323.1.1. Specs

Short name

Php/UseCli

Rulesets

All, Appinfo, CE, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

High

Available in

Entreprise Edition, Community Edition, Exakat Cloud