Doesn't run on MediaWiki 1.19 minimal requirements
From semantic-mediawiki.org
The release notes of Semantic Result Formats version 1.8 state full compatibility with MediaWiki 1.19. However, this is not completely true.
MediaWiki 1.19 has a minimum requirement of PHP v.5.0.2, but Semantic Result Formats uses PHP 5.3 functions in some places. So if you are running MediaWiki 1.19 with ie PHP 5.2.4, SRF (in fact, the entire wiki) breaks.
At the moment, the issues I have traced concern the use of the PHP __DIR__ magic constant, in three places:
Resources.php (2 hits)
Line 32: 'localBasePath' => __DIR__ ,
Line 37: 'localBasePath' => __DIR__ . '/formats',
SemanticResultFormats.php (1 hit)
Line 67: $wgResourceModules = array_merge( $wgResourceModules, include( __DIR__ . "/Resources.php" ) );
Replacing the __DIR__
constant with dirname(__FILE__)
in all three occurences, fixes the issue.
I have, however, not looked for every new PHP 5.3 function being used.
I think you should either update the code, or update the documentation.