From: Stanislav Malyshev Date: Wed, 11 Jul 2012 04:47:56 +0000 (-0700) Subject: add test X-Git-Tag: php-5.5.0alpha1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c164e6b5a37b668a016846060d8e039d6af32ae5;p=php add test --- diff --git a/Zend/tests/bug18556.phpt b/Zend/tests/bug18556.phpt new file mode 100644 index 0000000000..a9fbb59228 --- /dev/null +++ b/Zend/tests/bug18556.phpt @@ -0,0 +1,36 @@ +--TEST-- +Bug #18556 (Setting locale to 'tr_TR' lowercases class names) +--FILE-- +foo = "Foo"; + } +} + +echo "Instantiating an infoBlob with a lowercase i\n"; +$foobar = new infoBlob(); +echo $foobar->foo; +echo "\nInstantiating an InfoBlob with an uppercase I\n"; +$foobar = new InfoBlob(); +echo $foobar->foo; +echo "\n"; +setlocale(LC_ALL, "tr_TR.utf8"); +foreach(get_declared_classes() as $class) +{ + if(!class_exists($class)) + echo "$class No Longer Exists!\n"; +} +echo "Done.\n"; +?> +--EXPECT-- +Instantiating an infoBlob with a lowercase i +Foo +Instantiating an InfoBlob with an uppercase I +Foo +Done.