Restored zip/oci8 PHP 4 code, add PHP 7 checks