ID: 21771 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Variables related Operating System: linux kernel 2.4.18 PHP Version: 4.3.0 New Comment:
Can you provide some short example script? And what locale causes this? Previous Comments: ------------------------------------------------------------------------ [2003-01-20 06:39:44] [EMAIL PROTECTED] Oops... This may not be related to php. It may be resulting from the turkish locale system itself. Let me investigate... ------------------------------------------------------------------------ [2003-01-20 06:24:33] [EMAIL PROTECTED] I thought this bug was submitted for an earlier version of php (maybe 4.1.2 or so), but it seems to be not corrected. The main problem is, the lowercase of "I" in Turkish is not "i". it is an "i" without a dot on top of it: "ý". Something in php affects all variables including the letter "I". So $_SESSION, SID, or PHPSESSID doesn't work. I think some code in php first changes all variables names to lowercase (and for turkish locale, incorrectly lowercases I to i), and then changes all variable names to uppercase (and correctly uppercases i to Ý). So, $_SESSION becomes $_SESSÝON, and since php couldn't find a variable named $_SESSION, it regenerates a new PHPSESSID. The correct uppercase - lowercase of this letter is: I - ý Ý - i A workaround for this is making sure apache server starts in en_US locale. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21771&edit=1