You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns a localizable message about php.ini that
60
-
* varies depending on whether the php_ini_loaded_file()
61
-
* is available or not.
62
-
*/
63
-
function_drush_php_ini_loaded_file_message() {
64
-
if (function_exists('php_ini_loaded_file')) {
65
-
returndt('Please check your configuration settings in !phpini or in your drush.ini file; see examples/example.drush.ini for details.', array('!phpini' => php_ini_loaded_file()));
66
-
}
67
-
else {
68
-
returndt('Please check your configuration settings in your php.ini file or in your drush.ini file; see examples/example.drush.ini for details.');
69
-
}
70
-
}
71
-
72
58
/**
73
59
* Evalute the environment after an abnormal termination and
74
60
* see if we can determine any configuration settings that the user might
@@ -82,40 +68,6 @@ function _drush_postmortem() {
82
68
}
83
69
}
84
70
85
-
/**
86
-
* Evaluate the environment before command bootstrapping
87
-
* begins. If the php environment is too restrictive, then
88
-
* notify the user that a setting change is needed and abort.
if (preg_match('/(^|,)' . $test_value . '(,|$)/', $ini_value)) {
104
-
$invalid_value = TRUE;
105
-
}
106
-
}
107
-
}
108
-
if ($invalid_value) {
109
-
$prohibited_list[] = $prohibited_mode;
110
-
}
111
-
}
112
-
if (!empty($prohibited_list)) {
113
-
drush_log(dt('The following restricted PHP modes have non-empty values: !prohibited_list. This configuration is incompatible with drush. !php_ini_msg', array('!prohibited_list' => implode(' and ', $prohibited_list), '!php_ini_msg' => _drush_php_ini_loaded_file_message())), LogLevel::ERROR);
114
-
}
115
-
116
-
returnTRUE;
117
-
}
118
-
119
71
/**
120
72
* Returns the current working directory.
121
73
*
@@ -359,21 +311,6 @@ function drush_find_drush() {
359
311
returnFALSE;
360
312
}
361
313
362
-
/**
363
-
* Verify that we are running PHP through the command line interface.
364
-
*
365
-
* This function is useful for making sure that code cannot be run via the web server,
366
-
* such as a function that needs to write files to which the web server should not have
367
-
* access to.
368
-
*
369
-
* @return
370
-
* A boolean value that is true when PHP is being run through the command line,
0 commit comments