public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
// set this for debugging -look for output in apache error log
//curl_setopt ($ch,CURLOPT_VERBOSE,1 );
// ensures any Location headers are followed
- if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off') {
+ if (ini_get('open_basedir') == '') {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 36000);
// ensures any Location headers are followed
- if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off') {
+ if (ini_get('open_basedir') == '') {
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
}
exit();
}
- //Check for safe mode CRM-2207
- if (ini_get('safe_mode')) {
- $this->use_sub_dirs = FALSE;
- }
- else {
- $this->use_sub_dirs = TRUE;
- }
+ $this->use_sub_dirs = TRUE;
$customPluginsDir = NULL;
if (isset($config->customPHPPathDir)) {
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
parent::__construct($title, $modal);
- // lets get around the time limit issue if possible, CRM-2113
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$this->_stateMachine = new CRM_Import_StateMachine($this, $action);
* - message: string, HTML-ish blob
*/
public function run($enablePrint = TRUE) {
- // lets get around the time limit issue if possible for upgrades
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
$upgrade = new CRM_Upgrade_Form();
list($currentVer, $latestVer) = $upgrade->getUpgradeVersions();
* @throws \Exception
*/
public function run() {
- // lets get around the time limit issue if possible for upgrades
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
Civi::resources()->addStyleFile('civicrm', 'css/admin.css');
* @return bool
*/
public function isRedirectSupported() {
- return (ini_get('open_basedir') == '') && (ini_get('safe_mode') == 'Off' || ini_get('safe_mode') == '' || ini_get('safe_mode') === FALSE);
+ return (ini_get('open_basedir') == '');
}
}
report_memleaks
report_zend_debug
request_order
-safe_mode
# Omit: safe_mode_allowed_env_vars
# Omit: safe_mode_exec_dir
safe_mode_gid
$lock = Civi::lockManager()->acquire('worker.contribute.CiviContributeProcessor');
if ($lock->isAcquired()) {
- // try to unset any time limits
- if (!ini_get('safe_mode')) {
- set_time_limit(0);
- }
+ set_time_limit(0);
CiviContributeProcessor::process();
}
<?php
ini_set('memory_limit', '2G');
-ini_set('safe_mode', 0);
// phpcs:disable
eval(cv('php:boot --level=classloader', 'phpcode'));
// phpcs:enable
<?php
ini_set('memory_limit', '2G');
-ini_set('safe_mode', 0);
// phpcs:disable
eval(cv('php:boot --level=classloader', 'phpcode'));
// phpcs:enable