GNOME Bugzilla – Bug 651807
Fix GTKNewsFeedLoader for versions of PHP which do not support json_decode
Last modified: 2011-06-06 09:50:46 UTC
Created attachment 189178 [details] [review] Patch to fix said problems Please read this carefully :) Technical discussion sucks. Here is a patch to fix the json_decode function for the GTK+ website. This should be treated as a *temporary* solution to the problem, as this function is enormously slow. Because of this, caching is recommended (or upgrading). To enable caching, make sure the correct write permissions are available for libs/newsfeed.cache.txt. This is the main file which is updated every once-in-a-while (1 hour by default). Once the version of PHP is upgraded to one that supports the native json_decode function, the native version will be used instead. This patch also removes code that was once used during website development which is no longer needed. I hope I haven't missed anything.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Thanks for the patch Devin