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