webCOMAND

script.php Configuration

The cScript parser configuration file is located under:
config/io_comand_script/script.php

The following options are available:

  • mod-image_enabled - TRUE = enable #IMAGE.  Image Magick must be installed.
  • instructions_run_limit - Maximum number of instructions to allow in a single execution process assuming an infinite loop must be running.  This number may need to be increased significantly to support longer and more complex cScripts.
<?php
/**
 * Defines configuration options for cScript processor.
 */
$config = [
    // Defines the modules that are enabled.
    'mod-image_enabled' => TRUE,
    'instructions_run_limit' => 32768
];

Instruction Run Limit

Typically the default insructions_run_limit of 32,768 is plenty.  However, if the aggregate of all #LIST and other loops iterate more than that number of items, you may get an error like:

  • Critical: EXCEPTION: Instructions run has exceeded limit of 32768 suspect infinite loop.  Aborting.

In that case, you may need to increase the limit.