Skip to content

Commit 73c57e6

Browse files
committed
Use unique identifier for RequestContextProvider
1 parent 47a5a5e commit 73c57e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/VarDumper/Dumper/ContextProvider/CliContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getContext(): ?array
2626

2727
return [
2828
'command_line' => $commandLine = implode(' ', $_SERVER['argv'] ?? []),
29-
'identifier' => hash('crc32b', $commandLine.$_SERVER['REQUEST_TIME_FLOAT']),
29+
'identifier' => hash('xxh128', $commandLine.'@'.$_SERVER['REQUEST_TIME_FLOAT']),
3030
];
3131
}
3232
}

src/Symfony/Component/VarDumper/Dumper/ContextProvider/RequestContextProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getContext(): ?array
4545
'uri' => $request->getUri(),
4646
'method' => $request->getMethod(),
4747
'controller' => $controller ? $this->cloner->cloneVar($controller) : $controller,
48-
'identifier' => spl_object_hash($request),
48+
'identifier' => hash('xxh128', spl_object_id($request).'@'.$_SERVER['REQUEST_TIME_FLOAT']),
4949
];
5050
}
5151
}

0 commit comments

Comments
 (0)