I have the following code:
class user{
public function __construct(){
}
}
$user = new user;
$id = $_SESSION['user'];
which results in the error "Cannot use object of type __PHP_Incomplete_Class as array".
Changing $_SESSION['user'] to $_SESSION['_user'] corrects this.
I am only experiencing this in my development environment. My live environment does not produce this error.
My question: is there a configuration setting that is treating the Session key 'user' as a class object?