Last modified: 2013-06-21 08:33:34 UTC
In LocalSettings, without any extensions, put this: $wgHooks[ 'ArticlePageDataAfter' ][] = 'onArticlePageDataAfter'; function onArticlePageDataAfter( $article, $row ) { // get_class($article) => 'WikiPage' $text = $article->getRawText(); echo $text; die(); } This fails with "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in [...]" Granted, that's only 128 MB of RAM which is below the minimum hardware requirements. I think the reason might be that at this point the WikiPage object may not be fully initialized. In later hooks the method works fine.
It seems to be in fact an infinite loop.
> in [...]" In where? :) Which exact MediaWiki version is this about?
(In reply to comment #2) > > in [...]" > > In where? :) I put [...] because that is pretty random. The process can run out of memory at any point, depending on a variety of factors. > > Which exact MediaWiki version is this about? 1.22alpha (a232f4e) (https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;h=a232f4ee33a9ed6dee6b5e9790c2158ea945c1dd)