php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21516 sessions, its seams a bug
Submitted: 2003-01-08 05:12 UTC Modified: 2003-01-27 22:37 UTC
From: vm at color-pro dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: FreeBSD 4.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vm at color-pro dot com
New email:
PHP Version: OS:

 

 [2003-01-08 05:12 UTC] vm at color-pro dot com
<?
$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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-08 09:32 UTC] iliaa@php.net
Is you register_globals on? Also try using the $_SESSION superglobal to register session variables instead of session_register.
 [2003-01-10 13:57 UTC] vm at color-pro dot com
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
 [2003-01-27 22:37 UTC] sniper@php.net
Sessions work just fine as long as they're used
correctly.

One easily noticed error in your script:
  
$rr = session_register(one);

You're trying to register function which name is supposed
to be defined in a constant called 'one'

Please ask further support questions on php-general@lists.php.net

Thank you.



 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 03 07:01:33 2024 UTC