r90345 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90344‎ | r90345 | r90346 >
Date:15:16, 18 June 2011
Author:platonides
Status:deferred
Tags:
Comment:
Hide if ( isset( $_SERVER['MW_COMPILED'] ) ) { require ( 'phase3/... branches from check-vars.
Modified paths:
  • /trunk/tools/code-utils/check-vars.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/check-vars.php
@@ -311,6 +311,10 @@
312312 $this->mTokens = array();
313313 return;
314314 }
 315+
 316+ /* Skip HipHop specific requires */
 317+ $source = preg_replace( '/if \( isset\( \$_SERVER\[\'MW_COMPILED\'\] \) \) {\\s+require \( \'phase3\/.*\' \);\\s+} else {/', 'if ( true ) {', $source );
 318+
315319 $this->mTokens = token_get_all( $source );
316320 }
317321

Status & tagging log