#21516 [Opn->Fbk]: sessions, its seams a bug

From: Date: Wed, 08 Jan 2003 15:32:26 +0000
Subject: #21516 [Opn->Fbk]: sessions, its seams a bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29447@lists.php.net to get a copy of this message
ID: 21516 Updated by: iliaa@php.net Reported By: vm@color-pro.com -Status: Open +Status: Feedback Bug Type: Session related Operating System: FreeBSD 4.5 PHP Version: 4.3.0 New Comment: Is you register_globals on? Also try using the $_SESSION superglobal to register session variables instead of session_register. Previous Comments: ------------------------------------------------------------------------ [2003-01-08 05:12:42] vm@color-pro.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> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21516&edit=1

« previous php.bugs (#29447) next »