summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-08-201-1/+1
|\ | | | | | | | | * PHP-7.2: fix the problem for connect_attr, set db condition, and add a new attribute _server_host
| * fix the problem for connect_attr, set db condition, and add a new attribute ↵Qianqian Bu2019-08-201-1/+1
| | | | | | | | _server_host
* | Merge branch 'PHP-7.2' into PHP-7.3Andrey Hristov2019-06-211-1/+3
|\ \ | |/
| * Add explicit cast to uint32_t.Andrey Hristov2019-06-211-1/+3
| | | | | | | | | | It works even without it but explicit stuff is better. The compiler probably converts the 16-bit uint16_t to uint32_t before doing the shift.
| * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-09-041-88/+2
|\ \ | |/
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-09-041-111/+2
| |\
| | * Revert all MySQL auth related changesNikita Popov2018-09-041-111/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per bug #76651 these changes do not appear to work correctly in some cases. As no immediate fix seems to be forthcoming, I'm reverting these changes. Revert "Fixed invalid free introduced by d6e81f0bfd0cb90586dd83d4fd47a4302605261a (avoid keeping "invalid" pointer)" This reverts commit 11507c0e1bfa17a96480f3648397f6975c31551e. Revert "Fix mysqlnd build without openssl" This reverts commit 6c9db02ff7812c298d1e7e292ba731d9d3a66790. Revert "Fix VC compilation as variable size array is not supported" This reverts commit f96df64cb2219fda42ca875483f874cf3052647c. Revert "Fix MySQL 8 auth" This reverts commit d6e81f0bfd0cb90586dd83d4fd47a4302605261a.
* | | 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
| |