1--TEST-- 2Bug #18556 (Setting locale to 'tr_TR' lowercases class names) 3--FILE-- 4<?php 5$g_lang = 'tr_TR'; 6putenv("LANG=$g_lang"); 7setlocale(LC_ALL, $g_lang); 8 9class InfoBlob { 10 var $foo; 11 function __construct() { 12 $this->foo = "Foo"; 13 } 14} 15 16echo "Instantiating an infoBlob with a lowercase i\n"; 17$foobar = new infoBlob(); 18echo $foobar->foo; 19echo "\nInstantiating an InfoBlob with an uppercase I\n"; 20$foobar = new InfoBlob(); 21echo $foobar->foo; 22echo "\n"; 23setlocale(LC_ALL, "tr_TR.utf8"); 24foreach(get_declared_classes() as $class) 25{ 26 if(!class_exists($class)) 27 echo "$class No Longer Exists!\n"; 28 29} 30echo "Done.\n"; 31?> 32--EXPECT-- 33Instantiating an infoBlob with a lowercase i 34Foo 35Instantiating an InfoBlob with an uppercase I 36Foo 37Done. 38