From db379ee40d07ae1b951010a51298d3616497ca4f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 19 Jun 2023 15:00:15 +0200 Subject: [PATCH] Test CI --- .github/workflows/php-mysql.yml | 2 +- htdocs/core/lib/functions.lib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-mysql.yml b/.github/workflows/php-mysql.yml index 8653c2f9b80..8b7b5095017 100644 --- a/.github/workflows/php-mysql.yml +++ b/.github/workflows/php-mysql.yml @@ -86,7 +86,7 @@ jobs: echo '$'dolibarr_main_db_pass=\'password\'';' >> $CONF_FILE echo '$'dolibarr_main_instance_unique_id=\'travis1234567890\'';' >> $CONF_FILE echo '$'dolibarr_main_db_type=\'mysqli\'';' >> $CONF_FILE - echo '$'dolibarr_main_db_port=\'3306\'';' >> $CONF_FILE + echo '$'dolibarr_main_db_port=\'32574\'';' >> $CONF_FILE echo '$'dolibarr_main_authentication=\'dolibarr\'';' >> $CONF_FILE cat $CONF_FILE - name: Generate install.forced.php file to test installation diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a68afb03aec..ee41b3a4c92 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5213,8 +5213,8 @@ function dol_print_error($db = '', $error = '', $errors = null) if (function_exists('top_httphead')) { // In CLI context, the method does not exists top_httphead(); } - //http_response_code(500); - http_response_code(202); + //http_response_code(500); // If we use 500, message is not ouput with some command line tools + http_response_code(202); // If we use 202, this is not really an error message, but this allow to ouput message on command line tools } if (empty($dolibarr_main_prod)) {