Symfony 2 lowercase-uppercase the “i” letter locale bug #3198

Closed
grinninglich opened this Issue Jan 27, 2012 · 10 comments

Projects

None yet

3 participants

@grinninglich

PHP Version 5.3.5

Symfony Version 2.0.9 Standard

ArchLinux 3.1.6-1

Reproduce:

Change your locale to Turkish: "tr_TR.utf8"

Downloaded latest Symfony 2.0.9 Standard Edition and execute the script:

http://localhost/Symfony/web/app_dev.php/

Produces error:
ErrorException: Warning: constant() [function.constant]: Couldn't find constant Monolog\Logger::iNFO in /opt/lampp/htdocs/Symfony/vendor/symfony/src/Symfony/Bundle/MonologBundle/DependencyInjection/MonologExtension.php line 102

In Turkish language look at these letters:

Lowercase "i" turns to "İ" in uppercase.

Lowercase "ı" turns to "I" in uppercase.

I think this convention is where it conflicts with English language and causes this kind of errors.

Also an my entry about the bug in StackOverflow:

http://stackoverflow.com/questions/8969304/symfony-2-lowercase-uppercase-the-i-letter-locale-bug

@stof
Member
stof commented Jan 27, 2012

@RandomUser283 a simple workaround would be to write the level uppercased in your config :)

@grinninglich

Can you elaborate how can i do this?

@stof
Member
stof commented Jan 27, 2012

Simply write INFO instead of info in your config file for the monolog config

@grinninglich

I don't know what is monolog config since this is the first time i trying to run Symfony but i will look for it, thanks!

@grinninglich

Sorry mate i can not find this config file for the monolog config. Since i've never used Symfony before a little help would be appreciated.

@stof
Member
stof commented Jan 29, 2012
@grinninglich

Thank you. I changed the word "info" to "INFO" and make a http://localhost/Symfony/web/app_dev.php/

Now new error:

Fatal error: Couldn't find implementation for method Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource::getiterator in Unknown on line 0

@grinninglich

Seems no one has a fix?

@stealth35
Contributor

@RandomUser283 try with mb_strtoupper

@stof
Member
stof commented Apr 4, 2012

Closing this as the original issue was fixed.

@stof stof closed this Apr 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment