summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps_codec.c
Commit message (Collapse)AuthorAgeFilesLines
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
|
* Merge branch 'PHP-7.0' into PHP-7.1Andrey Hristov2016-12-121-0/+1
|\
| * Fix off by 1 problem.Andrey Hristov2016-12-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The problem was manifestated only with BIT columns and only when more than one row was fetched. The problem was coming from the fact that in pre-7.0 times mysqlnd was using a no-copy optimization. This optimization kept the strings (and also the BIT mask equivalents as strings) in the packet and the zval referred to them. 7.0+ zvals cannot use no-copy and always copy. Because of this the allocated memory for the packet was reduced by 1 by the person who ported the driver, but the starting address of the bit area wasn't reduced. Because of this the bit_area started at wrong address and the length decoded wrong.
* | Fixed compilation warningsDmitry Stogov2016-06-231-1/+1
| |
* | Merge branch 'PHP-7.0'Andrey Hristov2016-03-161-4/+2
|\ \ | |/
| * Fix emails in headers. @mysql.com addresses are no more since many years.Andrey Hristov2016-03-161-4/+3
| |
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-231-0/+6
| | |
| | * Patch commit d9f85373e32 by moving the float_to_double function toKeyur Govande2015-01-261-2/+2
| | | | | | | | | | | | a header file.
| | * Fix for bugs #68114 (Build fails on OS X due to undefined symbols)Keyur Govande2015-01-261-48/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient has rounding errors). The patch removes support for Decimal floating point numbers and now defaults to using similar logic as what libmysqlclient does: convert a 4 byte floating point number into a string, and then the string into a double. The quirks of MySQL are maintained as seen in Field_Float::val_str()
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-231-0/+6
| | |
* | | MNDR:Andrey Hristov2015-11-121-24/+24
| | | | | | | | | | | | | | | - less dereferencing in mysqlnd_ps . Dereference stmt->conn only once and use a stack variable. Also make the source cleaner.
* | | MNDR:Andrey Hristov2015-11-121-2/+0
| | | | | | | | | | | | - remove unused macros
* | | MNDR:Andrey Hristov2015-11-121-0/+2
| | | | | | | | | | | | - move things out of mysqlnd_priv.h
* | | MNDR:Andrey Hristov2015-11-121-1/+1
| | | | | | | | | | | | - remove inclusion of uneeded headers
* | | MNDR:Andrey Hristov2015-11-121-7/+7
| | | | | | | | | | | | - make MYSQLND_ERROR_INFO a class
* | | Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-231-0/+6
|/ /
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-4/+4
| |
* | Merge branch 'PHP-5.6'Keyur Govande2015-01-071-48/+5
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Add NEWS Add NEWS Patch commit d9f85373e32 by moving the float_to_double function to a header file. Fix for bugs #68114 (Build fails on OS X due to undefined symbols) and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient has rounding errors). 5.5.22 now Conflicts: ext/mysqli/mysqli_api.c
| * \ Merge branch 'PHP-5.5' into PHP-5.6Keyur Govande2015-01-071-48/+5
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Add NEWS Patch commit d9f85373e32 by moving the float_to_double function to a header file. Fix for bugs #68114 (Build fails on OS X due to undefined symbols) and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient has rounding errors). 5.5.22 now Conflicts: configure.in main/php_version.h
| | * Patch commit d9f85373e32 by moving the float_to_double function toKeyur Govande2015-01-071-2/+2
| | | | | | | | | | | | a header file.
| | * Fix for bugs #68114 (Build fails on OS X due to undefined symbols)Keyur Govande2015-01-071-48/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and #68657 (Reading 4 byte floats with Mysqli and libmysqlclient has rounding errors). The patch removes support for Decimal floating point numbers and now defaults to using similar logic as what libmysqlclient does: convert a 4 byte floating point number into a string, and then the string into a double. The quirks of MySQL are maintained as seen in Field_Float::val_str()
* | | Merge branch 'PHP-5.6'Keyur Govande2014-12-261-1/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Fix for failing tests. gcc 4.8.3 would optimize away the assigment.
| * | Merge branch 'PHP-5.5' into PHP-5.6Keyur Govande2014-12-261-1/+2
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: Fix for failing tests. gcc 4.8.3 would optimize away the assigment.
| | * Fix for failing tests. gcc 4.8.3 would optimize away the assigment.Keyur Govande2014-12-261-1/+2
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-36/+36
| | |
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2014-09-101-1/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: fix precision when fetching float through mysqlnd
| * | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-09-101-1/+11
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: fix precision when fetching float through mysqlnd
| | * fix precision when fetching float through mysqlndAnatol Belski2014-09-101-1/+11
| | | | | | | | | | | | fixes failing ext/mysqli/tests/010.phpt
* | | master renames phase 7PRE_AST_MERGEAnatol Belski2014-08-251-3/+3
| | |
* | | master renamings phase 5Anatol Belski2014-08-251-3/+3
| | |
* | | master renames phase 3Anatol Belski2014-08-251-1/+1
| | |
* | | master renames phase 1Anatol Belski2014-08-251-26/+26
| | |
* | | ported mysql and mysqlndAnatol Belski2014-08-191-15/+15
| | |
* | | basic macro replacements, all at onceAnatol Belski2014-08-191-20/+20
| | |
* | | Merge branch 'PHP-5.6'Keyur Govande2014-08-151-4/+45
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Update NEWS Fix another failing test Add NEWS Fix failing tests Patch for bug #67839 (mysqli does not handle 4-byte floats correctly)
| * | Merge branch 'PHP-5.5' into PHP-5.6Keyur Govande2014-08-151-4/+45
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Update NEWS Fix another failing test Add NEWS Fix failing tests Patch for bug #67839 (mysqli does not handle 4-byte floats correctly) Conflicts: ext/mysqli/tests/mysqli_change_user.phpt
| | * Merge branch 'PHP-5.4' into PHP-5.5Keyur Govande2014-08-151-4/+45
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Add NEWS Fix failing tests Patch for bug #67839 (mysqli does not handle 4-byte floats correctly) Conflicts: ext/mysqli/tests/table.inc
| | | * Patch for bug #67839 (mysqli does not handle 4-byte floats correctly)Keyur Govande2014-08-141-4/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * Bump yearXinchen Hui2014-01-031-1/+1
| | | |
| | * | Bump yearXinchen Hui2014-01-031-1/+1
| | | |
* | | | Cleanup (refactoring is finish)Xinchen Hui2014-06-231-2/+0
| | | |
* | | | Fixed paramters bindingXinchen Hui2014-06-191-23/+33
| | | |
* | | | Fixed various bugsXinchen Hui2014-06-191-0/+2
| | | |