← Back to team overview

anewt-developers team mailing list archive

[Bug 503538] Re: MySQL's BIGINT doesn't fit into PHP's 32 bit integer datatype

 

For what it's worth: there have been some changes wrt. this bug a while
back.

 1799 Wouter Bolsterlee 2010-10-26
      [database] MySQL: cast BIGINT when it is <= PHP_INT_MAX
      
      Cast BIGINT values into real integers if the result fits in
      a regular integer. This makes things like the value of
      COUNT(*) in a SQL query that sometimes returns BIGINT values
      (even though the actual value easily fits in an integer)
      work as expected.
      
      Before this change, PHP_INT_SIZE was consulted, resulting in
      casting only on 64-bits platforms, which is not really
      useful.

-- 
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.
https://bugs.launchpad.net/bugs/503538

Title:
  MySQL's BIGINT doesn't fit into PHP's 32 bit integer datatype



References