mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Unguard the DarkConsole XHProf profile write.
This commit is contained in:
parent
b42b78f65c
commit
0e6bc7c939
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ final class DarkConsoleXHProfPluginAPI {
|
|||
$data = serialize($data);
|
||||
$file_class = 'PhabricatorFile';
|
||||
PhutilSymbolLoader::loadClass($file_class);
|
||||
|
||||
// Since these happen on GET we can't do guarded writes.
|
||||
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
|
||||
|
||||
$file = call_user_func(
|
||||
array($file_class, 'newFromFileData'),
|
||||
$data,
|
||||
|
|
Loading…
Reference in a new issue