#21771 [Fbk]: variable names changing in turkish locale

From: Date: Wed, 22 Jan 2003 01:10:34 +0000
Subject: #21771 [Fbk]: variable names changing in turkish locale
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30883@lists.php.net to get a copy of this message
 ID:               21771
 Updated by:       sniper@php.net
-Summary:          Header('Location: ... ') problem
 Reported By:      tufan@metu.edu
 Status:           Feedback
 Bug Type:         Variables related
-Operating System: Windows 2000
+Operating System: linux kernel 2.4.18
 PHP Version:      4.3.0
 New Comment:

restore mangled summary and OS entries.



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

[2003-01-21 11:26:21] hholzgra@php.net

strange ... this was fixed for functions constants
but should not affect variables, as these are 
case insensitive (so no conversions take place
while resolving them)
or is there something different going on with
the super-globals?

does this affect $_SESSION only? what if you have
register_globals enabled and try to pass something
like "...script.php?ID=test"? do you have $ID or
$ÝD set in your script then?

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

[2003-01-21 06:27:16] tufan@metu.edu

by the way, it's turkish locale
tr_TR
iso8859-9

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

[2003-01-21 06:24:08] tufan@metu.edu

no code works. even the example in the php session documentation...
:)

<?php
session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
    $_SESSION['count'] = 0;
} else {
    $_SESSION['count']++;
}
echo "Count {$_SESSION['count']}";
?>

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

[2003-01-20 16:03:17] sniper@php.net

Can you provide some short example script?
And what locale causes this?


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

[2003-01-20 06:39:44] tufan@metu.edu

Oops... This may not be related to php. It may be resulting from the
turkish locale system itself. Let me investigate...

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21771

-- 
Edit this bug report at http://bugs.php.net/?id=21771&edit=1



Thread (11 messages)

« previous php.bugs (#30883) next »