Bug #16865 Updated: constants get undefined if setting locale to tr_TR
| From: | sniper@php.net | Date: | Mon, 29 Apr 2002 01:11:42 +0000 |
| Subject: | Bug #16865 Updated: constants get undefined if setting locale to tr_TR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-6405@lists.php.net to get a copy of this message | ||
ID: 16865
Updated by: sniper@php.net
Reported By: jan@horde.org
-Status: Open
+Status: Analyzed
-Bug Type: Unknown/Other Function
+Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.0CVS-2002-04-26
New Comment:
Not sure whether it happens because tr_TR locale is broken?
When these constants are defined, they are defined using
the current locale whatever it was when PHP starts.
So, it you do this:
# export LC_ALL=tr_TR
# php -f test.php
And it works..
So when constants are searched from the hash, same locale should be
used which was used when they were registered.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2002-04-26 19:18:54] jan@horde.org
This one is a very strange one. It seems like some constants are
getting undefined if you set the locale to tr_TR. It happens randomly
with internally defined and user defined constants and is reproducable
with this little script:
<?php
setlocale(LC_ALL, 'tr_TR');
echo extension_loaded('imap');
echo SORTARRIVAL;
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16865&edit=1