user1002601
user1002601

Reputation: 373

Symfony 2 lowercase-uppercase the "i" letter locale bug

This is the error it gives me when i try to:

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

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

I know that the Turkish locale causes this error. But i can not use any other locale than Turkish, i must solve this.

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.

But how i can i fix this?

Reported: https://github.com/symfony/symfony/issues/3198

Upvotes: 3

Views: 1043

Answers (1)

Jakub Zalas
Jakub Zalas

Reputation: 36191

This is a bug caused by the following piece of code in MonologBundle:

 constant('Monolog\Logger::'.strtoupper($handler['level']));   

Problem with Turkish locale is known on php.net: http://www.php.net/manual/en/function.strtoupper.php#97667

Report a bug with steps how to reproduce it on github.

Read how to report bugs in the official docs.

Upvotes: 1

Related Questions