<?php

// OK.
setlocale();
setlocale(LC_ALL, 'nl_NL');
setlocale($category, $lang); // Can't be determined.

// Not OK.
setlocale('LC_ALL', 'nl_NL');
setlocale('LC_'.$category, $lang);

// Issue #1043 - ignore function calls, constants etc.
setlocale(getMyLocale('text'), 'nl_NL');
setlocale($array['LC_ALL'], 'nl_NL');

// Safeguard support for PHP 8 named parameters.
setlocale(locales: 'nl_NL', category: $category); // Can't be determined.
setlocale(category: 'LC_ALL', locales: 'nl_NL'); // Error.

// Safeguard against false positives when target param not found.
setlocale(locales: 'nl_NL', cat: LC_ALL,); // OK, well not really, but using incorrect parameter name.
