I'm not sure what the answer to your
question is, but a quick look at www.php.net
and a search for get_defined_vars in the
function list gives some information. In
particular, take note of the second "User
contributed note" at the bottom of the
get_defined_vars page. That person states
that get_defined_vars can only access
variables in its scope. You didn't give
any details about what you were seeing, but
if you defined some function that does
this unsetting of all the defined variables,
perhaps that is what is causing it.
This is just a guess. Need more detailed information about what you have coded, and
what behavior you are seeing.