lcfirst function is missing from php < 5.3

Bug #971419 reported by Attila Fülöp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Konekt Framework
Fix Released
Medium
Attila Fülöp

Bug Description

Could be easily added:

if (!function_exists('lcfirst')) {
    function lcfirst($string) {
        return substr_replace($string, strtolower(substr($string, 0, 1)), 0, 1);
    }
}

The best is to create a separate check if php < 5.3 then include compatibility52.php, or something like that

Related branches

Changed in konekt-framework:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Attila Fülöp (fulopattila122)
milestone: none → 0.2
Changed in konekt-framework:
milestone: 0.2 → 0.3
Changed in konekt-framework:
status: Confirmed → Fix Committed
Changed in konekt-framework:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.