We are using ubuntu 20.04, PHP7.4, and Azure SQL
Message: preg_replace(): Compilation failed: unrecognised compile-time option bit(s) at offset 0
Filename: core/Common.php
Line Number: 725
Backtrace:
File: /var/www/html/api/index.php Line: 316 Function: require_once
This is the code from Filename: core/Common.php
function remove_invisible_characters($str, $url_encoded = TRUE)
{
$non_displayables = array();
// every control character except newline (dec 10),
// carriage return (dec 13) and horizontal tab (dec 09)
if ($url_encoded)
{
$non_displayables[] = '/%0[0-8bcef]/i'; // url encoded 00-08, 11, 12, 14, 15
$non_displayables[] = '/%1[0-9a-f]/i'; // url encoded 16-31
$non_displayables[] = '/%7f/i'; // url encoded 127
}
$non_displayables[] = '/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S'; // 00-08, 11, 12, 14-31, 127
do
{
$str = preg_replace($non_displayables, '', $str, -1, $count);
}
while ($count);
return $str;
}
}
Code from: File: /var/www/html/api/index.php Line: 316 Function: require_once
require_once BASEPATH.'core/CodeIgniter.php';