|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-27 10:13 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 10:00:01 2025 UTC |
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) "mcarlos@ativa.net" ["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) "mcarlos@ativa.net" ["idiom"]=> &string(2) "pt" ["logado"]=> &string(6) "logado" ["consulta"]=> array(0) { } }