4.0.4:
*I install new silverstripe 4.0.4 with PHP 7.4 and than it show error:
Warning : preg_replace(): Compilation failed: invalid range in character class at offset 4 in /www/n/e/u39624/public_html/vendor/silverstripe/framework/src/Core/TempFolder.php on line 79
Warning : preg_replace(): Compilation failed: invalid range in character class at offset 4 in /www/n/e/u39624/public_html/vendor/silverstripe/framework/src/Core/TempFolder.php on line 79*
I did not do anything in code.
Line 79:
$tempPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . ‘silverstripe-cache-php’ . preg_replace(’/[^\w-.+]+/’, ‘-’, PHP_VERSION) . str_replace(array(’ ', ‘/’, ‘:’, ‘\’), ‘-’, $base);