HEX
Server: LiteSpeed
System: Linux s3.sitechai.com 4.18.0-553.51.1.lve.1.el8.x86_64 #1 SMP Wed May 14 14:34:57 UTC 2025 x86_64
User: workzeni (2217)
PHP: 8.1.32
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/workzeni/agency-erp-05.workzenix.com/vendor/staabm/side-effects-detector/lib/SideEffect.php
<?php

namespace staabm\SideEffectsDetector;

/**
 * @api
 */
final class SideEffect {
    /**
     * die, exit, throw.
     */
    const PROCESS_EXIT = 'process_exit';

    /**
     * class definition, func definition, include, require, global var, unset, goto
     */
    const SCOPE_POLLUTION = 'scope_pollution';

    /**
     * fwrite, unlink...
     */
    const INPUT_OUTPUT = 'input_output';

    /**
     * echo, print.
     */
    const STANDARD_OUTPUT = 'standard_output';

    /**
     * code for sure has side-effects, we don't have enough information to classify it.
     */
    const UNKNOWN_CLASS = 'unknown_class';

    /**
     * code might have side-effects, but we can't tell for sure.
     */
    const MAYBE = 'maybe_has_side_effects';

    private function __construct() {
        // nothing todo
    }
}