Krinkle has uploaded a new change for review. https://gerrit.wikimedia.org/r/252856
Change subject: Remove PHP detection from entry points other than index.php ...................................................................... Remove PHP detection from entry points other than index.php The following entry points already didn't have it: * opensearch.php * thumb.php * thumb_handlers.php Now removed from api.php and load.php as well. The check was broken because these entry points use the 'use' keyword for PHP namespaces, which results in a syntax error on PHP < 5.3. The check remains in index.php, mw-config/index.php, and Maintenance (for e.g. install.php). Bug: T112942 Change-Id: I9026d69ddfb3e02612256b4a9df525c432bb33c6 --- M api.php M load.php 2 files changed, 0 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/56/252856/1 diff --git a/api.php b/api.php index af7c452..83c1373 100644 --- a/api.php +++ b/api.php @@ -35,11 +35,6 @@ // So extensions (and other code) can check whether they're running in API mode define( 'MW_API', true ); -// Bail on old versions of PHP, or if composer has not been run yet to install -// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. -require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; -wfEntryPointCheck( 'api.php' ); - require __DIR__ . '/includes/WebStart.php'; $starttime = microtime( true ); diff --git a/load.php b/load.php index e65b09e..43c2faf 100644 --- a/load.php +++ b/load.php @@ -24,11 +24,6 @@ use MediaWiki\Logger\LoggerFactory; -// Bail on old versions of PHP, or if composer has not been run yet to install -// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+. -require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php'; -wfEntryPointCheck( 'load.php' ); - require __DIR__ . '/includes/WebStart.php'; -- To view, visit https://gerrit.wikimedia.org/r/252856 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9026d69ddfb3e02612256b4a9df525c432bb33c6 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Krinkle <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
