@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use JSON, not PHP serialization, for XHProf profiles.

+2 -2
+1 -1
src/aphront/console/plugin/xhprof/DarkConsoleXHProfPluginAPI.php
··· 144 144 } 145 145 146 146 $data = xhprof_disable(); 147 - $data = serialize($data); 147 + $data = @json_encode($data); 148 148 self::$profilerRunning = false; 149 149 150 150 // Since these happen on GET we can't do guarded writes. These also
+1 -1
src/applications/xhprof/controller/PhabricatorXHProfProfileController.php
··· 21 21 } 22 22 23 23 $data = $file->loadFileData(); 24 - $data = unserialize($data); 24 + $data = @json_decode($data, true); 25 25 if (!$data) { 26 26 throw new Exception("Failed to unserialize XHProf profile!"); 27 27 }