From:             leandroico at gmail dot com
Operating system: Linux box331.bluehost.com 2.6.22
PHP version:      5.2.5
PHP Bug Type:     Session related
Bug description:  $_SESSION variable has its elements being referenced.

Description:
------------
Actually the PHP version encountered this apparently bug is 5.1.6, but I
haven't found that option at the select box above.

On he other hand, on my developer machine (using windows xp/apache/php
5.2) I haven't the presence of this anomaly.

THE PROBLEM:
$_SESSION variables (the direct elements of $_SESSION), when "var_dumped",
is noticed that they (each $_SESSION element) are being referenced somehow,
because the presence of the '&' before the variable type on var_dump
output. And because this phenomena I'm having big trouble, making clear I
can't update server's php version.

Reproduce code:
---------------
var_dump($_SESSION);

Expected result:
----------------
array(9) {
  ["usr1d"]=>
  string(2) "68"
  ["tat"]=>
  string(1) "7"
  ["grupo"]=>
  string(5) "ativa"
  ["agenc"]=>
  string(2) "RJ"
  ["nam3"]=>
  string(23) "Manoel Carlos M. CorrĂȘa"
  ["ema1l"]=>
  string(17) "[EMAIL PROTECTED]"
  ["idiom"]=>
  string(2) "pt"
  ["logado"]=>
  string(6) "logado"
  ["consulta"]=>
  &array(0) {
  }
}

Actual result:
--------------
array(9) {
  ["usr1d"]=>
  &string(2) "68"
  ["tat"]=>
  &string(1) "7"
  ["grupo"]=>
  &string(5) "ativa"
  ["agenc"]=>
  &string(2) "RJ"
  ["nam3"]=>
  &string(23) "Manoel Carlos M. CorrĂȘa"
  ["ema1l"]=>
  &string(17) "[EMAIL PROTECTED]"
  ["idiom"]=>
  &string(2) "pt"
  ["logado"]=>
  &string(6) "logado"
  ["consulta"]=>
  array(0) {
  }
}

-- 
Edit bug report at http://bugs.php.net/?id=43423&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43423&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43423&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43423&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43423&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43423&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43423&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43423&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43423&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43423&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43423&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43423&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43423&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43423&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43423&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43423&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43423&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43423&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43423&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43423&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43423&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43423&r=mysqlcfg

Reply via email to