fixed possible bug
This commit is contained in:
@@ -100,7 +100,8 @@ if (!defined('__LIB_INC__')){
|
||||
}
|
||||
// If zlib output compression is set in the php configuration file, no
|
||||
// output buffering should be run
|
||||
if (@function_exists('ini_get') && @ini_get('zlib.output_compression')) {
|
||||
if (PHP_INT_VERSION < 40000
|
||||
|| (PHP_INT_VERSION >= 40005 && @ini_get('zlib.output_compression'))) {
|
||||
$cfgOBGzip = FALSE;
|
||||
}
|
||||
// Gets some constants
|
||||
@@ -112,8 +113,9 @@ if (!defined('__LIB_INC__')){
|
||||
* Loads the mysql extensions if it is not loaded yet
|
||||
* staybyte - 26. June 2001
|
||||
*/
|
||||
if (PHP_INT_VERSION > 30009
|
||||
&& (!@get_cfg_var('safe_mode') && @function_exists('dl'))) {
|
||||
if (((PHP_INT_VERSION >= 40000 && !@ini_get('safe_mode'))
|
||||
|| (PHP_INT_VERSION > 30009 && !@get_cfg_var('safe_mode')))
|
||||
&& @function_exists('dl')) {
|
||||
if (PHP_INT_VERSION < 40000) {
|
||||
$extension = 'MySQL';
|
||||
} else {
|
||||
|
@@ -241,13 +241,13 @@ else {
|
||||
*/
|
||||
// 1. as a bzipped file
|
||||
if (isset($bzip) && $bzip == 'bzip') {
|
||||
if (@function_exists('bzcompress')) {
|
||||
if (PHP_INT_VERSION >= 40004 && @function_exists('bzcompress')) {
|
||||
echo bzcompress($dump_buffer);
|
||||
}
|
||||
}
|
||||
// 2. as a gzipped file
|
||||
else if (isset($gzip) && $gzip == 'gzip') {
|
||||
if ($gzip == 'gzip' && @function_exists('gzencode')) {
|
||||
if (PHP_INT_VERSION >= 40004 && @function_exists('gzencode')) {
|
||||
// without the optional parameter level because it bug
|
||||
echo gzencode($dump_buffer);
|
||||
}
|
||||
|
Reference in New Issue
Block a user