25項目のRSSフィードからデータを読み込もうとしています。HTTP経由でRSSファイルをリクエストすると、アイテムが20個しかないと表示されます。
function test($location)
{
$doc = new DomDocument();
$doc->load($location);
$items = $doc->getElementsByTagName('item');
return $items->length;
}
// Prints 20
echo test('http://www.reddit.com/r/programming/new/.rss?after=t3_');
// Prints 25
echo test('programming.xml');
他のサブレディットからのRSSフィードも試しましたが、同じ結果になりました。