Skip to content

Commit eac2a14

Browse files
committed
fix to bypass auto_globals_jit
1 parent aa11324 commit eac2a14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class Router
4646
*/
4747
public function __construct()
4848
{
49+
/** @noinspection PhpExpressionResultUnusedInspection */
50+
$_SERVER; // Bypass auto_globals_jit and populate _SERVER into GLOBALS
4951
// Get the Base of the URI, without 'index.php'
5052
$this->uriBase = strtr($this->getServer('SCRIPT_NAME'), ['index.php' => '']);
5153
// make Relative URI - remove query string from the request (everything after ?)

0 commit comments

Comments
 (0)