summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix VC compilation as variable size array is not supportedAnatol Belski2018-06-061-0/+9
|
* Fix MySQL 8 authJohannes Schlüter2018-06-061-2/+102
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Fixed bug #75018, fixed bug #75177Anatol Belski2017-09-131-1/+1
| | | | Both are caused by the same cast issue in mysqlnd on 32-bit.
* 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
| | |
| * | Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-231-0/+1
| | |
* | | More const and moved the declaration of php_mysqlnd_scramble() to mysqlnd_auth.hAndrey Hristov2015-11-171-16/+16
| | |
* | | mysqlnd refactoring :Andrey Hristov2015-11-161-20/+20
| | | | | | | | | | | | | | | - move the command buffer out of the networking code to the protocol frame codec.
* | | MNDR:Andrey Hristov2015-11-121-44/+45
| | | | | | | | | | | | | | | - 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-5/+0
| | | | | | | | | | | | - remove unused macros
* | | MNDR:Andrey Hristov2015-11-121-0/+2
| | | | | | | | | | | | - move things out of mysqlnd_priv.h
* | | MNDR:Andrey Hristov2015-11-121-2/+0
| | | | | | | | | | | | - remove inclusion of uneeded headers
* | | MNDR:Andrey Hristov2015-11-121-1436/+0
| | | | | | | | | | | | - move the command factory to own file - mysqlnd_commands.c
* | | MNDR:Andrey Hristov2015-11-121-4/+4
| | | | | | | | | | | | - move all data members from MYSQLND_PFC to MYSQLND_PFC_DATA
* | | MNDR:Andrey Hristov2015-11-121-575/+60
| | | | | | | | | | | | - better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)
* | | MNDR:Andrey Hristov2015-11-121-69/+69
| | | | | | | | | | | | | | | - rename MYSQLND_NET to MYSQLND_PPEC (protocol packet envelope codec). PPEC does only the encoding and decoding to the protocol frame.
* | | MNDR:Andrey Hristov2015-11-121-0/+512
| | | | | | | | | | | | | | | - intermediate step to move MYSQLND_NET from mysqlnd_vio.c to mysqlnd_wireprotocol.c In following commits MYSQLND_NET's methods and data will be moved to MYSQLND_PROTOCOL
* | | MNDR:Andrey Hristov2015-11-121-46/+78
| | | | | | | | | | | | | | | | | | | | | - split MYSQLND_NET into MYSQLND_NET and MYSQLND_VIO MYSQLND_NET is above MYSQLND_VIO. _NET takes care of protocol packet counting (even with compressed), while VIO is just about the network (or in case of windows, non-network, but PIPE) transport.
* | | MNDR:Andrey Hristov2015-11-121-15/+15
| | | | | | | | | | | | - some small renaming of methods
* | | MNDR:Andrey Hristov2015-11-121-115/+131
| | | | | | | | | | | | - send_command and send_command_handle_response_* moved to a structure
* | | MNDR:Andrey Hristov2015-11-121-16/+138
| | | | | | | | | | | | - move connection establishment code to own command - COM_HANDSHAKE
* | | MNDR:Andrey Hristov2015-11-121-104/+219
| | | | | | | | | | | | - decouple the commands from the connection. CONN ist passed now only in 1 case
* | | MNDR:Andrey Hristov2015-11-121-41/+1
| | | | | | | | | | | | - remove dead code
* | | MNDR:Andrey Hristov2015-11-121-7/+7
| | | | | | | | | | | | - clean up some things
* | | MNDR:Andrey Hristov2015-11-121-0/+19
| | | | | | | | | | | | - move COM_INIT_DE result handling to the command
* | | MNDR:Andrey Hristov2015-11-121-78/+1
| | | | | | | | | | | | - remove COM_FIELD_LIST
* | | MNDR:Andrey Hristov2015-11-121-5/+49
| | | | | | | | | | | | - move handling of commands to the command itself