Issues

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

Issue Type: Bug Created: 2009-06-25T07:26:14.000+0000 Last Updated: 2009-07-31T20:59:30.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: S├ębastien Barbieri (scips) Assignee: Jon Whitcraft (sidhighwind) Tags: - Zend_Service_Twitter

Related issues: - ZF-7133

Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts