ZF-7122: Zend_Service_Twitter does not handle twitter id > 2147483647 (integer casting)

Description

Twitter does not use id below 2^31 (2147483647) anymore so every cast (int) in the code generate an error.

Solution: remove the cast (int) and use a preg_match("/(\d+)/",$value,$matches) if you are paranoïd.

impacted methods:

statusFriendsTimeline statusReplies statusDestroy directMessageMessages directMessageSent favoriteCreate favoriteDestroy

279: $_params['since_id'] = (int) $value; 411: $_params['since_id'] = (int) $value; 434: $path = '/statuses/destroy/' . (int) $id . '.xml'; 541: $_params['since_id'] = (int) $value; 576: $_params['since_id'] = (int) $value; 760: $path = '/favorites/create/' . (int) $id . '.xml'; 775: $path = '/favorites/destroy/' . (int) $id . '.xml';

Comments

Merged into the release branch with r16307