|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-07 11:03 UTC] ilia at prohost dot org
[2002-06-07 11:14 UTC] derick@php.net
[2002-06-07 11:28 UTC] ilia at prohost dot org
[2002-06-07 11:47 UTC] ilia at prohost dot org
[2002-06-07 13:31 UTC] sniper@php.net
[2002-11-19 05:04 UTC] eodabas at progen dot com dot tr
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
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.