disabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/functio...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 24 Aug 2009 15:08:58 +0000 (15:08 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 24 Aug 2009 15:08:58 +0000 (15:08 +0000)
maintenance/syntaxChecker.php

index a2e3619..387b92a 100644 (file)
@@ -42,9 +42,12 @@ class SyntaxChecker extends Maintenance {
                $this->buildFileList();
                $this->output( "done.\n" );
 
+               // ParseKit is broken on PHP 5.3+, disabled until this is fixed
+               $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' );
+
                $this->output( "Checking syntax (this can take a really long time)...\n\n" );
                foreach( $this->mFiles as $f ) {
-                       if( function_exists( 'parsekit_compile_file' ) ) {
+                       if( $useParseKit ) {
                                $this->checkFileWithParsekit( $f );
                        } else {
                                $this->checkFileWithCli( $f );