Found in Textpattern:
     if (@ini_get('register_globals'))
        foreach ( $_REQUEST as $name => $value )
                  unset($$name);