summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd.c
Commit message (Collapse)AuthorAgeFilesLines
* MNDR:Andrey Hristov2015-11-121-2746/+0
| | | | - rename mysqlnd.c to mysqlnd_connection.c
* MNDR:Andrey Hristov2015-11-121-202/+3
| | | | - move things out of mysqlnd_priv.h
* MNDR:Andrey Hristov2015-11-121-2/+1
| | | | - move the command factory to own file - mysqlnd_commands.c
* MNDR:Andrey Hristov2015-11-121-1/+1
| | | | - route the option to the right handler
* MNDR:Andrey Hristov2015-11-121-4/+7
| | | | - move all data members from MYSQLND_PFC to MYSQLND_PFC_DATA
* MNDR:Andrey Hristov2015-11-121-47/+50
| | | | | - move from char* + len to MYSQLND_STRING - add some more const modifiers
* MNDR:Andrey Hristov2015-11-121-32/+30
| | | | - better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)
* MNDR:Andrey Hristov2015-11-121-5/+3
| | | | | - 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/+1
| | | | - moved networking code to mysqlnd_vio.c
* MNDR:Andrey Hristov2015-11-121-11/+23
| | | | | | | - 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-45/+63
| | | | - Move transport string generation to own function, which can be overloaded or sniffed
* MNDR:Andrey Hristov2015-11-121-5/+1
| | | | - remove double decrement
* MNDR:Andrey Hristov2015-11-121-145/+105
| | | | - move connection establishment code to own command - COM_HANDSHAKE
* MNDR:Andrey Hristov2015-11-121-13/+12
| | | | - convert the API of MYSQLND_NET to MYSQLND_STRING
* MNDR:Andrey Hristov2015-11-121-18/+16
| | | | - clean up some things
* MNDR:Andrey Hristov2015-11-121-23/+6
| | | | - move COM_INIT_DE result handling to the command
* MNDR:Andrey Hristov2015-11-121-68/+0
| | | | - remove COM_FIELD_LIST
* MNDR:Andrey Hristov2015-11-121-41/+6
| | | | - move handling of commands to the command itself
* MNDR:Andrey Hristov2015-11-121-103/+0
| | | | - split handle_response() into handle_OK and handle_EOF
* MNDR:Andrey Hristov2015-11-121-11/+11
| | | | | - now send_command_handle_response() also doesn't depend directly on MYSQLND_CONN_DATA
* MNDR:Andrey Hristov2015-11-121-3/+4
| | | | | - pass connection closer and its context - remove unused parameter
* MNDR:Andrey Hristov2015-11-121-16/+18
| | | | - rename the macro for updating the connection state
* MNDR:Andrey Hristov2015-11-121-26/+44
| | | | - make the connection state a class
* MNDR:Andrey Hristov2015-11-121-31/+32
| | | | - switch to macro generation of structure names for the methods
* MNDR:Andrey Hristov2015-11-121-112/+138
| | | | - make MYSQLND_ERROR_INFO a class
* MDNR:Andrey Hristov2015-11-121-18/+62
| | | | | - make MYSQLND_UPSERT_STATUS more like an object that a simple structure Still use macros to make updates simple
* MNDR:Andrey Hristov2015-11-121-108/+40
| | | | - abstract SSL enabling into COM_ENABLE_SSL
* MDNR:Andrey Hristov2015-11-121-1057/+12
| | | | - Refactor the command factory. Let the factory be exchangeable.
* MDNR:Andrey Hristov2015-11-121-26/+364
| | | | | - send_command() is no more, thus we need commands for all COM_STMT_* + CHANGE_USER
* MNDR:Andrey Hristov2015-11-121-85/+775
| | | | | - Switch for directly executing a command over the wire to creating a command object which is then executed.
* MNDR:Andrey Hristov2015-11-121-2/+0
| | | | - Remove unused variable
* MNDR:Andrey Hristov2015-11-121-6/+7
| | | | - Inject the object factory
* MNDR:Andrey Hristov2015-11-121-2/+11
| | | | | | - remove static function and make it a method. The function doesn't need to be in mysqlnd_ps.c as it doesn't use any resources anymore from it (it used in the past)
* MDNR:Andrey Hristov2015-11-121-17/+0
| | | | | | | | | | | | | | - removed init() method from mysqlnd_conn_data and moved the initialization to the object factory->get_connection(). Now it is unified as with the prepared statement which doesn't have any init() method - the protocol decoder factory now takes connection as parameter at creation and thus there is no need to pass the connection as parameter when calling the read or the write method of a packet. - saved the protocol payload decoder factory as pointer in every packet (read/write) so the connection doesn't need to be passed on every call of read/write (dependency has been already injected at creation). This will alow to move protocol specific code from MYSQLND_NET (send_ex()) to make MYSQLND_NET leaner and free from protocol stuff.
* MNDR:Andrey Hristov2015-11-121-13/+13
| | | | | | - rename mysqlnd_init to mysqlnd_connection_init - rename mysqlnd_connect to mysqlnd_connection_connect - created macros for BC
* MNDR:Andrey Hristov2015-11-121-11/+11
| | | | | - Rename MYSQLND_PROTOCOL to MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY - Rename other symbols related to MYSQLND_PROTOCOL accordingly
* MNDRAndrey Hristov2015-11-121-2/+2
| | | | - mysqlnd_option -> mysqlnd_client_option
* MNDRAndrey Hristov2015-11-121-24/+24
| | | | - Rename simple_command* to send_command
* MNDR :Andrey Hristov2015-11-121-8/+9
| | | | | - Rename MYSQLND_OPTIONS to MYSQLND_SESSION_OPTIONS - Rename MYSQLND_NET_OPTIONS to MYSQLND_IO_OPTIONS
* Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-10-271-1/+6
|\
| * Another Fix for Bug #68344 MySQLi does not provide way to disable peer ↵Andrey Hristov2015-10-271-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | certificate validation Added the possibility to explicitly state that the peer certificate should not be checked. Back to the default - checking the certificate. Exported MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT Usage : mysqli_real_connect( , , , , , MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT) If mysqli_ssl_set() is not called, but only MYSQLI_CLIENT_SSL is passed, without the (don't) very flag, then no verification takes place.
| * Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-231-0/+2
| |
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-07-071-23/+37
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Better fix for bug #69958 update news Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM) Fix bug #69923 - Buffer overflow and stack smashing error in phar_fix_filepath Fix bug #69958 - Segfault in Phar::convertToData on invalid file Better fix for bug #69958 Better fix for bug #69958 update news Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM) Fix bug #69923 - Buffer overflow and stack smashing error in phar_fix_filepath Fix bug #69958 - Segfault in Phar::convertToData on invalid file Conflicts: ext/phar/phar_object.c
| | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-07-071-1/+1
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Better fix for bug #69958 update news Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM) Fix bug #69923 - Buffer overflow and stack smashing error in phar_fix_filepath Fix bug #69958 - Segfault in Phar::convertToData on invalid file Conflicts: ext/mysqlnd/mysqlnd.c
| | | * Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM)Stanislav Malyshev2015-07-071-25/+40
| | | |
| | * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-07-061-22/+36
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM) Fix bug #69923 - Buffer overflow and stack smashing error in phar_fix_filepath Fix bug #69958 - Segfault in Phar::convertToData on invalid file Conflicts: ext/mysqlnd/mysqlnd.c
| | | * | Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM)Stanislav Malyshev2015-07-061-25/+40
| | | |/
| | | * Bump yearXinchen Hui2014-01-031-1/+1
| | | |
| | * | Bump yearXinchen Hui2015-01-151-1/+1
| | | |
| * | | bump yearXinchen Hui2015-01-151-1/+1
| | | |