Налаштування під час виконання
PHP Manual
PHP Manual»Встановлення/налаштування»Налаштування під час виконання

На поведінку цих функцій випливають налаштування в php.ini.

Taint Параметри конфігурації
Назва Початково Де можна змінювати Журнал змін
taint.enable 0 INI_SYSTEM  
taint.error_level 512 (E_USER_WARNING) INI_ALL  

Тут є коротке пояснення директив конфігурації.

taint.enable bool

Master switch. When enabled, taint hooks the executor and marks strings from $_GET, $_POST and $_COOKIE as tainted at request startup.

This is an php.ini-only directive: enabling it requires a process restart, so it cannot be toggled per request or per directory.

Зауваження:

Do not enable this directive in production environments: the instrumentation slows every request down and is incompatible with the OPcache JIT.

taint.error_level int

The error level used when taint reports a possibly tainted string. Defaults to E_USER_WARNING (512).

Because this directive is INI_ALL, it can be changed at runtime. For example, to silence taint warnings for the current script:

<?php
ini_set('taint.error_level', 0);
?>

To Top