ID:               16865
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Analyzed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      4.0CVS-2002-04-26
 New Comment:

It works indeed if you set the locale before calling the php script.
But this is of course not practicable.


Previous Comments:
------------------------------------------------------------------------

[2002-04-28 21:11:41] [EMAIL PROTECTED]

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




------------------------------------------------------------------------

[2002-04-26 19:18:54] [EMAIL PROTECTED]

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

Reply via email to