Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 554 Bytes

PHPCompatibility.ParameterValues.RemovedSetlocaleString.md

File metadata and controls

16 lines (9 loc) · 554 Bytes

Pattern: Passing the $category as a string to setlocale()

Issue: -

Description

Detects passing a string literal as $category to setlocale().

Support for the category parameter passed as a string has been removed. Only LC_* constants can be used as of PHP 7.0.0.

PHP version 4.2 PHP version 7.0

Further Reading