Because we're currently running 3 branches I've sent the PR for this to master
and I'm asking for it to be merged into 5.3.NEXT, 5.4.NEXT, and 5.5.NEXT
respectively to maintain consistency.
https://github.com/php/php-src/pull/253/

This seems to be a regression from the PHP-5.2 branch as well. After testing on PHP-
5.2,5.3,5.4,5.5,and master branches I found that the issue did not exist back in ext/sqlite2
as string casting was done instead of using integer types. The issue probably was over looked
when the sqlite3 driver was ported in to replace the old ext/sqlite2.
Regression results:
http://playground.sheriframadan.com/testphphL1I9j