Hello all.
For those of you who have tried to get mediawiki running under hiphop, I've run into a block.
After applying the patches from Domas and converting a few e-flagged preg_replace functions to preg_replace_callback, I have it running successfully, hitting the database as many times as it needs to, invoking no errors, and generally being very fast. I get a 200 response on my requests (very quickly), no errors raised, but no matter the request, the body is completely blank and the content-length header is 3. I suspect that the skin is not getting loaded properly, but as I'm not deeply familiar with the codebase I'm wondering if any of you can see anything obviously wrong. This happens on api requests and requests to the index after a 301 to MainPage.
Thanks for your help!
Ryan
I have applied the following patch from Domas against svn rev 63062: http://stafford.wikimedia.org/current-patch.txt
I replaced a couple e-flagged preg_replace functions with preg_replace_callback and did some type interference: http://projects.yaauie.com/hphp/mediawiki/hphp-yaauie.patch
I'm using the following file list: http://projects.yaauie.com/hphp/mediawiki/hphp-files.list
My environment variables are set by source-ing this file: http://projects.yaauie.com/hphp/mediawiki/hphp.env
I'm compiling with the following string: $HPHP --input-list=files.list --force=1 --k 1 --log=3 --program=mediawiki
I'm running the resulting application with the following string: sudo /tmp/hphp_abc123/mediawiki -m server -c hphp-runtime-config.hdf
The config file I'm loading is: http://projects.yaauie.com/hphp/mediawiki/hphp-runtime-config.hdf
On Fri, Mar 26, 2010 at 20:00, Ryan Bies ryan@yaauie.com wrote:
[...]
I don't know the answer to your question but can we please get this hiphop work into SVN and out of various patchsets floating around? Let's just create a hiphop branch for it so we can all experiment with it.
It looks like you don't have SVN commit access. Please ask for an account to commit this stuff.
wikitech-l@lists.wikimedia.org