Adding "function_exists" check before using "ini_set" in Debugger::__construct(). Fixes #1209

This commit is contained in:
ADmad 2010-10-20 02:16:17 +05:30
parent 1c25e627ad
commit ffc77aa588

View file

@ -120,7 +120,7 @@ class Debugger extends Object {
function __construct() {
$docRef = ini_get('docref_root');
if (empty($docRef)) {
if (empty($docRef) && function_exists('ini_set')) {
ini_set('docref_root', 'http://php.net/');
}
if (!defined('E_RECOVERABLE_ERROR')) {