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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy