ID: 21516
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Session related
Operating System: FreeBSD 4.5
PHP Version: 4.3.0
New Comment:
yes i ck @register_globals on@
and tell me please what means "syperglobal" and why in php are so many
ways to registered sessions ?? :)
=========
1/ session_register("barney");
2/ $_SESSION["barney"] = "something";
3/ $HTTP_SESSION_VARS["barney"] = "something";
===================================
ok. tell me pls how differs first way from 2(3) ..
if u test this example .. u will see that this works with a bug.. but
in php under win is works without bug (under win it works nice/perfect
&& and under *nix but in php 4.0.2 (also in older versions ))
PS. php-developers!!! can u tell me one thing. why i must post this bug
at a period of 2-months and YOU erase my post every time after i
posted.
this is very polite and nice. if it was a lame question i have
understood, but.....
but u have not ever test this :(
PSS. have a nice php.develper.2003.year
Previous Comments:
------------------------------------------------------------------------
[2003-01-08 09:32:25] [EMAIL PROTECTED]
Is you register_globals on? Also try using the $_SESSION superglobal to
register session variables instead of session_register.
------------------------------------------------------------------------
[2003-01-08 05:12:42] [EMAIL PROTECTED]
<?
$rf = session_start(); //begin session
$one = $two; //when $tho is empty --> $one is empty too
$rr = session_register(one); //then registered $one in session (one is
empty)
$rr = "example"; // then for example $rr = "example";
echo $fff; // end here we print $fff (but $fff have
been empty, we did not defined it )
echo $fsdf;
echo $empty;
//but this echo�s example... WHY ??? this is small BUG
?>
<?
echo $fff;
echo $fsdf;
echo $empty; //this echoe nothing becouse $empty $fsdf $fff; is empty
// test this 2 //
?>
==============
<pre>
$rf = session_start(); //begin session
$one = $two; //when $tho is empty --> $one is empty too
$rr = session_register(one); //then registered $one in session (one is
empty)
$rr = "example"; // then for example $rr = "example";
echo $fff; // end here we print $fff (but $fff have
been empty, we did not defined it )
echo $fsdf;
echo $empty;
//but this echo�s example... WHY ??? this is small BUG
echo $fff;
echo $fsdf;
echo $empty; //this echoe nothing becouse $empty $fsdf $fff; is empty
// test this 2 //
</pre>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21516&edit=1