From: [EMAIL PROTECTED] Operating system: Linux (CentOS 4) PHP version: 5CVS-2007-01-10 (CVS) PHP Bug Type: Scripting Engine problem Bug description: Method call failure with tr_TR locale
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 bug report at http://bugs.php.net/?id=40086&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40086&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40086&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40086&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40086&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40086&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40086&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40086&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40086&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40086&r=support Expected behavior: http://bugs.php.net/fix.php?id=40086&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40086&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40086&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40086&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40086&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40086&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40086&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40086&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40086&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40086&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40086&r=mysqlcfg