ISSUE: if not gzdecode exists then define otherwise use predefined function.
Minor changes for php warnings.