Skip to content

Commit d9722de

Browse files
committed
WEB: Fix development servr detection for PHP 8.4
1 parent f4762c2 commit d9722de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* if the DEV_SERVER environment variable is set to 1
1111
*/
1212
if (isset($_SERVER['SERVER_SOFTWARE']) &&
13-
\preg_match("/PHP [\d\.]+ Development Server/", $_SERVER['SERVER_SOFTWARE'])) {
13+
\preg_match("/PHP[ \/][\d\.]+ \(?Development Server\)?/", $_SERVER['SERVER_SOFTWARE'])) {
1414
if (\is_file(__DIR__ . '/' . strtok($_SERVER["REQUEST_URI"], '?'))) {
1515
return false;
1616
}

0 commit comments

Comments
 (0)