1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 14:12:38 +02:00
Files
archived-php-src/ext
Keyur Govande 7bfe9bf951 Merge branch 'pull-request/772' into PHP-5.4
* pull-request/772:
  Fix failing tests
  Patch for bug #67839 (mysqli does not handle 4-byte floats correctly)

Before the patch, a value of 9.99 in a FLOAT column came out of mysqli
as 9.9998998641968. This is because it would naively cast a 4-byte float
into PHP's internal 8-byte double.
To fix this, with GCC we use the built-in decimal support to "up-convert"
the 4-byte float to a 8-byte double.
When that is not available, we fall back to converting the float
to a string and then converting the string to a double. This mimics
what MySQL does.
2014-08-15 23:06:55 +00:00
..
2014-01-03 11:04:26 +08:00
2014-05-08 01:59:39 -07:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-05-12 10:54:16 -07:00
2014-08-13 20:12:42 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-06-08 13:50:22 -07:00
2014-07-08 14:13:46 -07:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-04-10 17:42:32 +03:00
2014-04-14 10:44:53 -07:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-06-20 13:56:32 +04:00
2014-08-14 18:20:26 +00:00
2014-07-30 02:28:31 +00:00
2014-08-07 19:49:59 +02:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-06-20 13:56:32 +04:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-05-21 18:58:14 +02:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-06-08 13:50:22 -07:00
2014-01-03 11:04:26 +08:00
2014-05-10 11:55:42 -03:00
2014-01-03 11:04:26 +08:00
2014-06-08 19:36:18 -07:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-08-14 17:07:28 -07:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-02-14 14:51:10 +02:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-01-03 11:04:26 +08:00
2014-04-01 10:08:08 +02:00
2014-01-03 11:04:26 +08:00
2014-08-05 15:44:43 +02:00