I found strange feature with $_SESSION var
class A
{
static function doSomething()
{
$_SESSION['foo'] = 'bar';
}
}
A::doSomething();
var_dump($_SESSION);
As you may guess session is not started but $_SESSION var is initialized. Who can explain what actually happens?