tFPDF::_dochecks PHP Метод

_dochecks() публичный Метод

***************************************************************************** * Protected methods * * *****************************************************************************
public _dochecks ( )
    function _dochecks()
    {
        // Check availability of %F
        if (sprintf('%.1F', 1.0) != '1.0') {
            $this->Error('This version of PHP is not supported');
        }
        // Check availability of mbstring
        if (!function_exists('mb_strlen')) {
            $this->Error('mbstring extension is not available');
        }
        // Check mbstring overloading
        if (ini_get('mbstring.func_overload') & 2) {
            $this->Error('mbstring overloading must be disabled');
        }
        // Ensure runtime magic quotes are disabled
        if (get_magic_quotes_runtime()) {
            @set_magic_quotes_runtime(0);
        }
    }