mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Use JSON, not PHP serialization, for XHProf profiles.
This commit is contained in:
parent
f49470f9bf
commit
e7254944ec
2 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ final class DarkConsoleXHProfPluginAPI {
|
|||
}
|
||||
|
||||
$data = xhprof_disable();
|
||||
$data = serialize($data);
|
||||
$data = @json_encode($data);
|
||||
self::$profilerRunning = false;
|
||||
|
||||
// Since these happen on GET we can't do guarded writes. These also
|
||||
|
|
|
@ -21,7 +21,7 @@ final class PhabricatorXHProfProfileController
|
|||
}
|
||||
|
||||
$data = $file->loadFileData();
|
||||
$data = unserialize($data);
|
||||
$data = @json_decode($data, true);
|
||||
if (!$data) {
|
||||
throw new Exception("Failed to unserialize XHProf profile!");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue