mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding "function_exists" check before using "ini_set" in Debugger::__construct(). Fixes #1209
This commit is contained in:
parent
1c25e627ad
commit
ffc77aa588
1 changed files with 1 additions and 1 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue