summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
Commit message (Collapse)AuthorAgeFilesLines
* OptimizationDmitry Stogov2018-07-101-100/+71
|
* emalloc() never returns NULLDmitry Stogov2018-06-131-3/+1
|
* Add check for variable size array featureAnatol Belski2018-06-091-2/+2
| | | | | | | | Usage of VLA is not portable, wile supported by some compilers. For instance, GCC supports it even if -std=c89 is passed. Even if we would switch to C99, it would be still not portable at least with VC++. Thus, adding a centralized check so such code can be guarded and moved to alloca() if needed.
* Merge branch 'PHP-7.2'Anatol Belski2018-06-061-0/+9
|\ | | | | | | | | | | * PHP-7.2: Fix VC compilation as variable size array is not supported NEWS for 7.2.8
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-06-061-2/+111
| |\ | | | | | | | | | | | | | | | * PHP-7.1: Fix VC compilation as variable size array is not supported Fix MySQL 8 auth
| | * Fix VC compilation as variable size array is not supportedAnatol Belski2018-06-061-0/+9
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Merge branch 'PHP-7.1'Johannes Schlüter2018-06-061-2/+78
|\ \ \ | | |/ | |/|
| * | Fix MySQL 8 authJohannes Schlüter2018-06-061-2/+102
| | |
| * | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Fix initialisation orderJohannes Schlüter2018-02-201-1/+1
| | |
* | | Trailing whitespacesGabriel Caruso2018-01-031-2/+2
| | | | | | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | | year++Xinchen Hui2018-01-021-1/+1
| | |
* | | Use single memory pool for result metadata and result set.Dmitry Stogov2017-11-151-2/+2
| | |
* | | Cleanup. Make difference between MYSQLND_ROW_BUFFER and ↵Dmitry Stogov2017-11-151-22/+22
| | | | | | | | | | | | MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
* | | Try to fix AppVeyor buildNikita Popov2017-11-141-1/+1
| | | | | | | | | | | | Performing arithmetic on void pointers is a GCC extension.
* | | Reimplemented MYSQLND_MEMORY_POOL to avoid allocations ouside of pool. Store ↵Dmitry Stogov2017-11-141-7/+8
| | | | | | | | | | | | all data related to result set in the pool.
* | | Run mysqlmd commands in one step (without separate create/run/free).Dmitry Stogov2017-11-141-5/+1
| | |
* | | Use stack-allocated packets.Dmitry Stogov2017-11-141-556/+251
| | |
* | | Made "result", "statement" and "last_message" to always use Zend MM heap. ↵Dmitry Stogov2017-11-021-17/+12
| | | | | | | | | | | | (even for persistent connections these entities don't relive request boundary)
* | | Extend zend_string API to avoid reallocation in zend_string_init_interned()Dmitry Stogov2017-10-191-1/+1
| | |
* | | Reuse interned strings from opcache SHM, if possible.Dmitry Stogov2017-10-161-1/+1
| | |
* | | Merge branch 'PHP-7.2'Anatol Belski2017-09-131-1/+1
|\ \ \ | | |/ | |/| | | | | | | * PHP-7.2: Fixed bug #75018, fixed bug #75177
| * | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-09-131-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed bug #75018, fixed bug #75177
| | * Fixed bug #75018, fixed bug #75177Anatol Belski2017-09-131-1/+1
| | | | | | | | | | | | Both are caused by the same cast issue in mysqlnd on 32-bit.
* | | Kill a compiler warning in ext/mysqlndKalle Sommer Nielsen2017-08-241-1/+1
|/ /
* | Use interned empty and "one char" strings.Dmitry Stogov2017-05-181-0/+4
|/
* Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-121-4/+5
|\
| * Fixed bug #74021andrewnester2017-02-121-4/+4
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fix data_size decrementNikita Popov2017-01-021-1/+1
| | | | | | | | We don't want to decrement the pointer...
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-021-1/+1
|\ \ | |/
| * Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVEvanviegen2017-01-021-2/+8
| | | | | | | | | | | | Fixes bug #73800 news entry for PR #2250
* | Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVEvanviegen2017-01-021-1/+7
| | | | | | | | | | | | Fixes bug #73800 news entry for PR #2249
* | Optimized memory handling of BIT fields. Less memory copies and lessAndrey Hristov2016-12-121-46/+11
| | | | | | | | memory usage.
* | Merge branch 'PHP-7.0' into PHP-7.1Andrey Hristov2016-12-121-3/+28
|\ \ | |/
| * Fix off by 1 problem.Andrey Hristov2016-12-121-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Fix bug #72293 - Heap overflow in mysqlnd related to BIT fieldsStanislav Malyshev2016-09-121-1/+6
| |
* | Fix bug #72293 - Heap overflow in mysqlnd related to BIT fieldsStanislav Malyshev2016-09-121-0/+5
| |
* | Fixed compilation warningsDmitry Stogov2016-06-231-1/+1
| |
* | Fix buildKalle Sommer Nielsen2016-03-171-1/+2
| |
* | Merge branch 'PHP-7.0'Andrey Hristov2016-03-161-3/+3
|\ \ | |/
| * Fix emails in headers. @mysql.com addresses are no more since many years.Andrey Hristov2016-03-161-4/+3
| |
* | Move free_chunk and resize_chunk into memory poolNikita Popov2016-02-221-5/+5
| | | | | | | | | | Drops 24 bytes from each chunk. For the example in bug #71468 it reduces memory usage by 30%.
* | 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/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |