Edit: This behaviour is reproducible with query globals on.
I have the following:
$_SESSION['query_key'] = $_GET['query_key'];
print($query_key);
Vs.
$_SESSION['query_key'] = clone $_GET['query_key'];
print($query_key);
The former prints out the value of $query_key, while the latter prints nothing. What sort of weird side effect is this of clone?