<?php
//
// Plugin API bug
//

$page = 307; // Note that this number may need to be incremented as new plugins are submitted.


//******************************************************************
$url = 'http://api.wordpress.org/plugins/info/1.0/';

// Get plugins by last updated
$params = new stdClass;
$params->page = $page;
$params->per_page = 50;
$params->browse = 'updated';
$params->fields = $fields = array('sections' => true); // Commenting this line makes it work.

// Build post parameters
$postdata = http_build_query(
    array(
      'action' => 'query_plugins',
        'request' => serialize($params)
    )
);

// Options array
$opts = array(
  'http' => array(
        'method'  => 'POST',
        'header'  => 'Content-type: application/x-www-form-urlencoded',
        'content' => $postdata
      )
  );

// Getting request results
$context  = stream_context_create($opts);
$data = @file_get_contents($url, false, $context);


// Output content
var_dump($data);