Closed jakubmisek closed 2 years ago
$_SESSION may be NULL as expected, but the following will cause the program to crash:
$_SESSION
NULL
<?php echo $_SESSION['xxx']; // throws NullReferenceException
The compiler does not expect that $_SESSION can be null and emits code that causes NullReferenceException
NullReferenceException
$_SESSION
may beNULL
as expected, but the following will cause the program to crash:The compiler does not expect that
$_SESSION
can be null and emits code that causesNullReferenceException