Index: trunk/phase3/maintenance/syntaxChecker.php |
— | — | @@ -42,9 +42,12 @@ |
43 | 43 | $this->buildFileList(); |
44 | 44 | $this->output( "done.\n" ); |
45 | 45 | |
| 46 | + // ParseKit is broken on PHP 5.3+, disabled until this is fixed |
| 47 | + $useParseKit = function_exists( 'parsekit_compile_file' ) && version_compare( PHP_VERSION, '5.3', '<' ); |
| 48 | + |
46 | 49 | $this->output( "Checking syntax (this can take a really long time)...\n\n" ); |
47 | 50 | foreach( $this->mFiles as $f ) { |
48 | | - if( function_exists( 'parsekit_compile_file' ) ) { |
| 51 | + if( $useParseKit ) { |
49 | 52 | $this->checkFileWithParsekit( $f ); |
50 | 53 | } else { |
51 | 54 | $this->checkFileWithCli( $f ); |