Bug #16865 Updated: constants get undefined if setting locale to tr_TR

From: Date: Mon, 29 Apr 2002 08:07: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-6428@lists.php.net to get a copy of this message
ID: 16865 Updated by: jan@horde.org Reported By: jan@horde.org 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] sniper@php.net 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] 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

« previous php.bugs (#6428) next »