#39634 [NEW]: session variable and normal variable
| From: | erhanbaris at gmail dot com | Date: | Sun, 26 Nov 2006 10:47:22 +0000 |
| Subject: | #39634 [NEW]: session variable and normal variable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105443@lists.php.net to get a copy of this message | ||
From: erhanbaris at gmail dot com
Operating system: Win Xp SP1
PHP version: 5.2.0
PHP Bug Type: Variables related
Bug description: session variable and normal variable
Description:
------------
when i was use $_SESSION variable i find interesting thing.
look at this.
Reproduce code:
---------------
<?
session_start();
$_SESSION['id']=2006;
header('Location: second.php');
?>
second.php
<?
session_start();
$id=1985;
echo "\$_SESSION['id'] ->
".$_SESSION['id']."<br>\n";
echo "\$id -> ".$id."<br>\n";
?>
--
Edit bug report at http://bugs.php.net/?id=39634&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39634&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39634&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39634&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39634&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39634&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39634&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39634&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39634&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39634&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39634&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39634&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39634&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39634&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39634&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39634&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39634&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39634&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39634&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39634&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39634&r=mysqlcfg