global and $_SESSION variables with the same name are the same
<p>I got a piece of code:</p>

<pre><code>$_SESSION['cms_lang'] = 2;
global $cms_lang;
$cms_lang[1] = 'en';
</code></pre>

<p>Error:</p>

<pre><code>Cannot use a scalar value as an array
</code></pre>

<p>Problem is that, I really don't know why server sees my global variable as the same as $_SESSION variable. I used this piece of code a couple of times and never had problem with that. I guess it must depends of settings on server. Can anyone know <strong>how to force server to not take global and session variables with the same name as the same</strong>?</p>
