yiisoft/yii — pull request #2100 by tomtomsen (2013-02-11 22:04:12+00:00)
Title: AR fails to typecast high integer values on 32 bit systems

Coksnuss describes the problem in Issue #2070 quite good.

I've overwritten the method typecast. i will return now a float instead of an integer if the value exceeds PHP_INT_MAX.

I've also extended the test cases.

Tested against PHP 5.3.20 and PHP 5.4.10