← Back to team overview

anewt-developers team mailing list archive

[Bug 370360] Re: PostgreSQL result: numeric column type

 

This snippet of PHP code:

  $x = 107629173119941611714;
  var_dump($x);
  var_dump((int) $x);

...produces this output:

  float(1.0762917312E+20)
  int(0)

So this has nothing to do with PostgreSQL nor how Anewt handles database
result sets. The numbers you're using are just too big to fit in a PHP
integer value.

** Changed in: anewt
       Status: Triaged => Invalid

-- 
PostgreSQL result: numeric column type
https://bugs.launchpad.net/bugs/370360
You received this bug notification because you are a member of Anewt
developers, which is subscribed to Anewt.



References