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
Posted by Jon Whitcraft (sidhighwind) on 2009-06-26T05:21:47.000+0000
Merged into the release branch with r16307