|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
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