Possible Duplicate:
PHP session side-effect warning with global variables as a source of data
The following message popped up:
Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively in Unknown on line 0
after I input the following lines in my script:
$InnerJoinQuery = $STD->prepare("
SELECT Users.ID, Users.Password, UserInformation.LastName, UserInformation.Firstname, UserInformation.DOB
FROM Users
INNER JOIN UserInformation
ON Users.ID = UserInformation.UserID WHERE Users.Username = ?");
$InnerJoinQuery->bind_param('i', $_SESSION['real_name']);
#$InnerJoinArray = $InnerJoinQuery->fetch_array(MYSQLI_ASSOC);
$InnerJoinQuery->execute();
$InnerJoinQuery-> bind_result($UID, $Password, $LastName, $Firstname, $DOB);
$InnerJoinQuery->fetch();
and after doing some research into this message I appended the following changes to my php.ini
register_globals = On
Then invoked:
/etc/init.d/apache2 reload
the message was still present
what exactly does this warning mean?
more importantly, why does the lines I added within my script invoke this warning, and not before?