1.2.188. Collect SetLocale

This rule collects the second argument to all the calls to setlocale(). This gives an overview of the which special locales are used in the code.

<?php

setlocale(LC_MONEY, 'nl_nl');

?>

1.2.188.1. Specs

Short name

Dump/CollectSetLocale

Rulesets

All, Changed Behavior, Dump

Exakat since

2.5.1

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

High

Available in

Entreprise Edition, Exakat Cloud