updated core to 7.80

This commit is contained in:
2021-07-12 10:11:08 +02:00
parent 7b1e954f7f
commit 5656f5a68a
236 changed files with 4149 additions and 888 deletions

View File

@@ -264,6 +264,10 @@ function simpletest_script_init($server_software) {
// '_' is an environment variable set by the shell. It contains the command that was executed.
$php = $php_env;
}
elseif (defined('PHP_BINARY') && $php_env = PHP_BINARY) {
// 'PHP_BINARY' specifies the PHP binary path during script execution. Available since PHP 5.4.
$php = $php_env;
}
elseif ($sudo = getenv('SUDO_COMMAND')) {
// 'SUDO_COMMAND' is an environment variable set by the sudo program.
// Extract only the PHP interpreter, not the rest of the command.
@@ -729,7 +733,7 @@ function simpletest_script_print_error($message) {
*/
function simpletest_script_print($message, $color_code) {
global $args;
if ($args['color']) {
if (!empty($args['color'])) {
echo "\033[" . $color_code . "m" . $message . "\033[0m";
}
else {