Hah, apparently PHP doesn't understand integers larger than
2147483647,
so when casting larger number to integer, it automatically becomes
2147483647

This is something new, but that's how it is: in php $status =
'10279397649'; $status = (int)$status;
php chokes on any number larger than 2147483647 and instead of
throwing an error in quietly returns
the largest integer in it knows, 2147483647

I did not expect this from a fairly new version of php 5.2.9


On Mar 10, 4:27 pm, Abraham Williams <4bra...@gmail.com> wrote:
> There is no status with that 
> ID:https://api.twitter.com/statuses/show/2147483647.xml
>
> Abraham
>
>
>
> On Wed, Mar 10, 2010 at 12:41, Dmitri Snytkine <d.snytk...@gmail.com> wrote:
> > Hello!
> > I want to add a status to another user's favories but apparantly the
> > api cannot do that.
>
> > I want to add message created by one user to favorites of another
> > user.
>
> > When doing it from api it refuses to add favorite probably because the
> > status id was not created by the same user to whom I want to add this
> > favorite.
>
> > I am looking at instructions here
> >http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-favorites%C2%A0...
>
> > It does not let you specify the username of status creator.
>
> > I am using this url with a POST method:
>
> >http://api.twitter.com/1/favorites/create/2147483647.json
>
> > The status 2147483647 was created by different user (not the same user
> > to whom I want to add this to favorite)
>
> > but then getting this error 404 with this message:
> > {"request":"/1/favorites/create/2147483647.json","error":"Not found"}
>
> > How can I change the request in order for this to work?
>
> --
> Abraham Williams | Community Advocate |http://abrah.am
> TwitterOAuth |http://github.com/abraham/twitteroauth
> This email is: [ ] shareable [x] ask first [ ] private.

Reply via email to