-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Locale problem #1095
Comments
You can say which version you are and what the environment? <?php
setlocale(LC_ALL, 'tr_TR.UTF8');
use Phalcon\DI\FactoryDefault;
echo "Everything is OK\n";
return;
```php |
I get the same error: <?php
use Phalcon\DI\FactoryDefault;
echo "Everything is OK\n";
return; Then,
|
@sjinks Because I did not has tr_TR.UTF-8 language packs, it is not an error? |
Could be. But the locale has to be set before PHP starts up. |
I install tr_TR.UTF-8, execute commands: $ LC_ALL = tr_TR.Utf-8
bash: warning: setlocale: LC_ALL: cannot change locale (tr_TR.UTF-8) $ LC_ALL=tr_TR.UTF-8 php test.php
bash: warning: setlocale: LC_ALL: cannot change locale (tr_TR.UTF-8)
Can't register interface with parent: phalcon\dispatcherinterfacePHP Fatal error: Unable to start phalcon module in Unknown on line 0 But, in file add setlocale(LC_ALL, 'tr_TR.UTF-8'); run is ok. |
Yes, this is has to do something with how Zend stores class names:
letter 'I' is not lowercased @dreamsxin what version of PHP do you run? |
Relevant changes in the PHP tree:
The difference is that new PHP versions use Unless we always pass lowercased names to |
PHP 5.4.9-4ubuntu2.2 (cli) (built: Jul 15 2013 18:23:35)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies |
My PHP version
|
Fix #1095 (Issues with inheritance in tr_TR locale)
This is fixed in 1.3.0 |
@tugrul how you fixed this issue? |
I'm not sure. Maybe this is PHP's bug. There is not problem without change the locale.
gives
I think there is a character problem because 'capital I' equivalent to 'small case ı' and 'capital İ' equivalent to 'small case i
The text was updated successfully, but these errors were encountered: