ID: 21516 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [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