ID:               40086
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux (CentOS 4)
 PHP Version:      5CVS-2007-01-10 (CVS)
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

We won't change this till PHP 6.


Previous Comments:
------------------------------------------------------------------------

[2007-01-10 07:59:54] [EMAIL PROTECTED]

Description:
------------
Calling object methods with uppercase I characters in their names fails
when the locale is set to Turkish (tr_TR). This is presumably because
'i' is not the lowercase equivalent to 'I' in the language, so
strcasecmp("I", "i") returns a non-zero value.

Reproduce code:
---------------
<?php
class C {
    function I() {
        echo "I there!\n";
    }
}
$c = new C;

setlocale(LC_ALL, 'en_AU');
$c->I();

setlocale(LC_ALL, 'tr_TR');
$c->I();
?>

Expected result:
----------------
I there!
I there!

Actual result:
--------------
I there!

Fatal error: Call to undefined method C::I() in /tmp/undefined.php on
line 15


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


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

Reply via email to