MantisBT: master 61804a9d

Author Committer Branch Timestamp Parent
Danez dhx master 2009-09-20 08:55 master 88324969
Affected Issues  0010967: Remove ini_set()'s as this function is often blocked by hoster
Changeset

Issue 0010967: Check for existence of ini_set function before use

On some servers, the administrator may have disabled the use of the
ini_set function for security reasons (using the disabled_functions PHP
configuration option).

We should check to make sure ini_set is available before we try to call
it.

Also use set_magic_quotes_runtime() instead of doing an ini_set on the
"magic_quotes_runtime" option. This function is deprecated as of PHP
5.3.0 but at least we can do a function_exists() check on it.

mod - core/string_api.php Diff File
mod - core/php_api.php Diff File
mod - file_download.php Diff File
mod - core/compress_api.php Diff File