Commit c551cf9a authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4628 (Installer errors on PHP8)

parent caacbd9d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -407,7 +407,6 @@ $FALSE_ERROR_FUNCS = array(
    'fread' => true,
    'fgets' => true,
    'fgetcsv' => true,
    'fgetss' => true,
    'ftruncate' => true,
    'pfsockopen' => true,
    'ob_get_length' => true,
@@ -1562,7 +1561,7 @@ function get_insecure_functions()
{
    return array('eval',
                 'ldap_search', 'ldap_list',
                 'register_shutdown_function', 'register_tick_function', 'create_function', 'call_user_method_array', 'call_user_func_array', 'call_user_method', 'call_user_func',
                 'register_shutdown_function', 'register_tick_function', 'call_user_method_array', 'call_user_func_array', 'call_user_method', 'call_user_func',
                 'fsockopen', 'chroot', 'chdir', 'chgrp', 'chmod', 'copy', 'delete', 'fopen', 'file', 'file_get_contents', 'fpassthru', 'mkdir', 'move_uploaded_file', 'popen', 'readfile', 'rename', 'rmdir', 'unlink', 'imagepng', 'imagejpeg', 'imagegif',
                 'mail', 'header',
                 'better_parse_ini_file', 'deldir_contents',
+5 −6
Original line number Diff line number Diff line
@@ -67,17 +67,16 @@ class Hook_check_functions_needed
            strnatcmp strncasecmp strncmp strrchr strrev strspn substr_replace tan unpack version_compare
            gettype var_dump vprintf vsprintf touch tanh sinh soundex stripcslashes
            readgzfile restore_error_handler rewind rewinddir quoted_printable_decode
            quotemeta exp ezmlm_hash lcg_value localtime addcslashes
            quotemeta exp lcg_value localtime addcslashes
            array_filter array_map array_merge_recursive array_multisort array_pad array_reduce array_walk
            atan2 fgetc fgetcsv fgetss filetype fscanf fstat array_change_key_case
            atan2 fgetc fgetcsv filetype fscanf fstat array_change_key_case
            date_default_timezone_get ftruncate func_get_arg func_get_args func_num_args
            parse_ini_file parse_str is_executable memory_get_usage
            is_scalar is_subclass_of metaphone natcasesort natsort nl2br ob_get_length ob_gzhandler
            ob_implicit_flush ob_clean printf convert_cyr_string cosh count_chars
            gethostbynamel getlastmod fpassthru create_function
            gettimeofday get_cfg_var get_magic_quotes_runtime get_meta_tags get_parent_class
            ob_implicit_flush ob_clean printf cosh count_chars gethostbynamel getlastmod fpassthru
            gettimeofday get_cfg_var get_meta_tags get_parent_class
            get_included_files get_resource_type gzcompress gzdeflate gzencode gzfile gzinflate
            gzuncompress hypot ignore_user_abort hebrev hebrevc array_intersect_assoc
            gzuncompress hypot ignore_user_abort hebrev array_intersect_assoc
            is_link is_callable debug_print_backtrace stream_context_create next array_sum
            gzclose gzopen gzwrite file_get_contents str_word_count html_entity_decode
            array_combine array_diff_uassoc array_udiff array_uintersect_uassoc
+0 −71
Original line number Diff line number Diff line
@@ -4361,17 +4361,6 @@ function exp($arg)
    return 0.0;
}

/**
 * Calculate the hash value needed by EZMLM mailing lists in a MySQL database.
 *
 * @param  string $addr The email address that's being hashed.
 * @return integer Hash.
 */
function ezmlm_hash($addr)
{
    return 0;
}

/**
 * Combined linear congruential generator.
 *
@@ -4542,19 +4531,6 @@ function fgetcsv($handle, $length = null, $delimiter = ',')
    return array();
}

/**
 * Gets line from file pointer and strip HTML tags.
 *
 * @param  resource $handle File handle.
 * @param  ?integer $length The maximum length of the line (null: no limit).
 * @param  string $allowable_tags Allowable HTML tags separated by spaces.
 * @return ~string Line (false: error).
 */
function fgetss($handle, $length = null, $allowable_tags = '')
{
    return '';
}

/**
 * Gets file type.
 *
@@ -4760,19 +4736,6 @@ function printf($format, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null,
    return '';
}

/**
 * Convert from one Cyrillic character set to another.
 *
 * @param  string $in Input.
 * @param  string $from From.
 * @param  string $to To.
 * @return string Output.
 */
function convert_cyr_string($in, $from, $to)
{
    return '';
}

/**
 * Hyperbolic cosine.
 *
@@ -4797,18 +4760,6 @@ function count_chars($string, $mode = 0)
    return '';
}

/**
 * Create a function dynamically. Do not use unless absolutely needed.
 *
 * @param  string $args Arguments.
 * @param  string $code Code to run.
 * @return string Function reference.
 */
function create_function($args, $code)
{
    return '';
}

/**
 * Run some code. Do not use unless absolutely needed.
 *
@@ -4875,16 +4826,6 @@ function get_cfg_var($varname)
    return '';
}

/**
 * Gets the current active configuration setting of magic_quotes_runtime.
 *
 * @return boolean Current value (Actually BINARY, but boolean will work).
 */
function get_magic_quotes_runtime()
{
    return true;
}

/**
 * Extracts all meta tag content attributes from a file and returns an array.
 *
@@ -5012,18 +4953,6 @@ function hebrev($hebrew_text, $max_chars_per_line = null)
    return '';
}

/**
 * Convert logical Hebrew text to visual text with newline conversion.
 *
 * @param  string $hebrew_text In.
 * @param  ?integer $max_chars_per_line Maximum number of characters per line (null: no limit).
 * @return string Out.
 */
function hebrevc($hebrew_text, $max_chars_per_line = null)
{
    return '';
}

/**
 * Calculate the length of the hypotenuse of a right-angle triangle.
 *