/** * Deactivates debugging according to the bits given in $mode * * See the constants defined early in this file. * An empty $mode defaults to DBG_ALL, thus disabling debugging completely * @param integer $mode The optional debugging mode bits */ public static function deactivate($mode = null) { if (empty($mode)) { self::$mode = DBG_NONE; } else { self::$mode = self::$mode & ~$mode; } self::__internal__setup(); }
/** * Deactivates debugging according to the bits given in $mode * * See the constants defined early in this file. * An empty $mode defaults to DBG_ALL, thus disabling debugging completely * @param integer $mode The optional debugging mode bits */ public static function deactivate($mode = null) { if (empty($mode)) { self::$mode = DBG_NONE; } else { self::$mode = self::$mode & ~$mode; } if ($mode === DBG_NONE) { self::log('DBG disabled (' . self::getActivatedFlagsAsString() . ')'); self::stack(); } self::__internal__setup(); }