Looking at the source code of Propel (the PHP ORM library), I have found this method inside the propel/propel1/runtime/lib/query/Criteria.php file:
/**
* Set offset.
*
* @param int $offset An int with the value for offset. (Note this values is
* cast to a 32bit integer and may result in truncation)
*
* @return Criteria Modified Criteria object (for fluent API)
*/
public function setOffset($offset)
{
$this->offset = (int) $offset;
return $this;
}
Why in the doc comments they say that the value casted to int may result in truncation??? Isn't the int kept to e.g. 4000000000
in 64 bit environment? Actually, it is, so why this "Note"?
Thanks for the attention!