From: jakubvrana Date: Tue, 9 Feb 2010 09:16:15 +0000 (+0000) Subject: PHP 4 compatibility (bug #2948187) X-Git-Tag: v3.0.0~248 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=622531f81dfc25baf7a2b2c5acaf1da9fbced925;p=adminer.git PHP 4 compatibility (bug #2948187) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1303 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index 7137fe57..e54e5b51 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -148,8 +148,8 @@ if (!ini_get("file_uploads")) {

"zlib", "bz2" => "bzip2") as $key => $val) { - if (in_array("compress.$val", stream_get_wrappers())) { +foreach (array("gz" => "zlib", "bz2" => "bz2") as $key => $val) { + if (extension_loaded($val)) { $compress[] = ".$key"; } }