Skip to content

Commit

Permalink
api: Remove deprecated format=php (serialised)
Browse files Browse the repository at this point in the history
This is an anti-pattern that is slower than JSON and less secure. It was never
used much and never in a stable release. Removing before v1.0.0
  • Loading branch information
Krinkle committed Jun 23, 2015
1 parent 997813e commit 41b8ff2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions inc/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ class Api {
protected static $formats = array(
'json',
'jsonp',
'php',
'debug',
);

Expand Down Expand Up @@ -65,13 +64,6 @@ public function output() {
. ')';
break;

// https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/api/ApiFormatPhp.php?revision=103273&view=markup
case 'php':
header( 'Content-Type: application/vnd.php.serialized; charset=utf-8' );
echo serialize( $this->response );
break;

// http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/api/ApiFormatDump.php?revision=70727&view=markup
case 'debug':
$debugPage = ApiDebugPage::newFromContext( $this->context );
$debugPage->setApiResponse( $this->response );
Expand Down

0 comments on commit 41b8ff2

Please sign in to comment.