What is session.bug_compat_42 and session.bug_compat_warn?

I know this topic is a bit outdated, but I surfed the Internet and on php.net, but did not find the answer I was looking for, or I was a little confused !! :( Below is my script.

I installed the latest WAMP (new copy) (PHP 5.3.1 Apache 2.2.14 MySql 5.1.36)

I installed joomla 1.5.20 and received an error in the second step with an error that the cookie is not stored or an error with session.save_path.

Looking at session.save_path, everything was fine, and cookies were also saved. Therefore, there were no problems.

After debugging more joomla files and changing the configuration of the php.ini file, I found that changing the parameters for session.bug_compat_42 and session.bug_compat_warn is disabled in the php.ini file, the installation was successful.

It might help someone. But my question is how does this affect joomla installation and how exactly do the values ​​matter for php !! ??

Can someone please give me more information. Thanks, Tanmay

+3
source share
1 answer

this means that your session defines a variable that also exists in the global scope. and php assumes that you wrote the code in the version <php4.2 and assumes that you are actually trying to access the "uninstalled" session variable from the global scope.

sort of

$_SESSION["foo"] = null;
$foo = "bar";

triggers a warning that you can ignore by setting these php.ini parameters to "0"

+6
source

Source: https://habr.com/ru/post/1761717/


All Articles