Bug #17642: setting certain locales undefines defines

From: Date: Fri, 07 Jun 2002 15:00:39 +0000
Subject: Bug #17642: setting certain locales undefines defines
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9761@lists.php.net to get a copy of this message
From: ilia@prohost.org Operating system: Linux 2.4.18 PHP version: 4.2.1 PHP Bug Type: Scripting Engine problem Bug description: setting certain locales undefines defines Setting certain locales, such as tr_TR (Turkish) undefines certain defines. Here is an example script <? define('__REQUEST_TIMESTAMP__', time()); echo "BEFORE: ".__REQUEST_TIMESTAMP__."<br>\n"; setlocale(LC_ALL, 'tr_TR'); echo "AFTER: ".__REQUEST_TIMESTAMP__."<br>\n"; ?> Results in the following output: BEFORE: 1023461965 Notice: Use of undefined constant __REQUEST_TIMESTAMP__ - assumed '__REQUEST_TIMESTAMP__' in /home/forum/test.php on line 12 AFTER: __REQUEST_TIMESTAMP__ On the otherhand using any other locale, such as de_DE or pl_PL seems to work fine and does not undefine the define. -- Edit bug report at http://bugs.php.net/?id=17642&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17642&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17642&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17642&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17642&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17642&r=support Expected behavior: http://bugs.php.net/fix.php?id=17642&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17642&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17642&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17642&r=globals

« previous php.bugs (#9761) next »