Edit report at https://bugs.php.net/bug.php?id=18556&edit=1

 ID:                 18556
 Updated by:         maar...@php.net
 Reported by:        spud at nothingness dot org
 Summary:            Setting locale to 'tr_TR' lowercases class names
 Status:             Assigned
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Linux (RedHat 7.2)
 PHP Version:        5CVS, 4CVS (2005-10-04)
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

Appears to be fixed since >= 5.4.0
See http://3v4l.org/lahi5 for proof:
---
Output for 5.4.0 - 5.4.4
    Instantiating an infoBlob with a lowercase i<br>Foo<br>Instantiating an 
InfoBlob with an uppercase I<br>Foo

Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.14
    Instantiating an infoBlob with a lowercase i<br>Foo<br>Instantiating an 
InfoBlob with an uppercase I<br> Fatal error: Class 'InfoBlob' not found in 
/in/lahi5 on line 25
    Process exited with code 255.
---
 Can't find it in the changelogs though.


Previous Comments:
------------------------------------------------------------------------
[2012-07-03 09:02:01] shevegen at gmail dot com

There are other languages one could use, other than PHP.

------------------------------------------------------------------------
[2012-07-02 11:42:50] bobx at bob dot com

hahaha yeah PHP is garbage

------------------------------------------------------------------------
[2012-05-15 20:54:08] inet dot alper at gmail dot com

https://github.com/php/php-src/pull/79
this patch does not break other locales, check it out.

------------------------------------------------------------------------
[2012-05-05 15:33:55] wim at powerassist dot nl

Sorry, I was to quick to comment. I see that there's an internal mailing going 
on.

------------------------------------------------------------------------
[2012-05-04 19:10:58] wim at powerassist dot nl

Why is this bug still not fixed? Not only class names are affected but function 
names aswell:

<?php
setlocale(LC_ALL, 'tr_TR.UTF-8');

class InfoBlob {
        
        public static function Intresting() {
                return 'is it not?';
        }
}

echo (infoBlob::intresting()); // works lowercase i function and class.
echo (infoBlob::Intresting()); // fails uppercase i function
echo (InfoBlob::intresting()); // fails uppercase i class 
?>

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=18556


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=18556&edit=1

Reply via email to