php PMA_isGzHandlerEnabled类(方法)实例源码

下面列出了php PMA_isGzHandlerEnabled 类(方法)源码代码实例,从而了解它的用法。

作者:FilipeRamosFernande    项目:phpmyadmi   
/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself
 *
 * @return bool Whether gzencode is needed
 */
function PMA_gzencodeNeeded()
{
    /*
     * We should gzencode only if the function exists
     * but we don't want to compress twice, therefore
     * gzencode only if transparent compression is not enabled
     * and gz compression was not asked via $cfg['OBGzip']
     * but transparent compression does not apply when saving to server
     */
    if (@function_exists('gzencode') && (!@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled() || $GLOBALS['save_on_server'])) {
        return true;
    } else {
        return false;
    }
}

作者:scriptpaza    项目:phpmyadmi   
/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself
 *
 * @return bool Whether gzencode is needed
 */
function PMA_gzencodeNeeded()
{
    /*
     * We should gzencode only if the function exists
     * but we don't want to compress twice, therefore
     * gzencode only if transparent compression is not enabled
     * and gz compression was not asked via $cfg['OBGzip']
     * but transparent compression does not apply when saving to server
     */
    $chromeAndGreaterThan43 = PMA_USR_BROWSER_AGENT == 'CHROME' && PMA_USR_BROWSER_VER >= 43;
    // see bug #4942
    if (@function_exists('gzencode') && (!@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled() || $GLOBALS['save_on_server'] || $chromeAndGreaterThan43)) {
        return true;
    } else {
        return false;
    }
}

作者:GDantas0    项目:WorkSerie   
/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself 
 *
 * @return bool Whether gzencode is needed 
 */
function PMA_gzencodeNeeded()
{
    if (@function_exists('gzencode') && !@ini_get('zlib.output_compression') && !PMA_isGzHandlerEnabled()) {
        return true;
    } else {
        return false;
    }
}

作者:mindfeederll    项目:openem   
/**
 * Detect whether gzencode is needed; it might not be needed if
 * the server is already compressing by itself 
 *
 * @return bool Whether gzencode is needed 
 */
function PMA_gzencodeNeeded()
{
    if (@function_exists('gzencode') && !@ini_get('zlib.output_compression') && !(function_exists('apache_get_modules') && in_array('mod_deflate', apache_get_modules())) && !PMA_isGzHandlerEnabled()) {
        return true;
    } else {
        return false;
    }
}


问题


面经


文章

微信
公众号

扫码关注公众号