summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_driver.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-5/+5
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* mysqlnd_error_info_init() cannot failNikita Popov2020-12-141-37/+19
|
* MySQLnd: Remove some unnecessary allocator failure checksNikita Popov2020-12-141-6/+0
| | | | emalloc/pemalloc are infallible.
* Fix [-Wundef] warning in MySQLnd extensionGeorge Peter Banyard2020-05-181-1/+1
|
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-1/+1
| | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Simplify the command factoryAndrey Hristov2019-01-071-2/+2
| | | | | | | | Since more than an year it not possible to create commands in the heap but they are allocated on the stack and directly run. In this regard, it doesn't make sense to have all the vararg stuff. Commands made sense to be created and pushed onto a stack then a general executor will run thru the stack and execute/handle the commands.
* Mark const what should not be changedAndrey Hristov2019-01-071-9/+9
|
* Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* year++Xinchen Hui2018-01-021-1/+1
|
* Merged allocationsDmitry Stogov2017-11-151-28/+8
|
* Run mysqlmd commands in one step (without separate create/run/free).Dmitry Stogov2017-11-141-2/+2
|
* Made "result", "statement" and "last_message" to always use Zend MM heap. ↵Dmitry Stogov2017-11-021-7/+5
| | | | (even for persistent connections these entities don't relive request boundary)
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0'Andrey Hristov2016-03-161-1/+1
|\
| * More email fixingAndrey Hristov2016-03-161-1/+1
| |
* | 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
| |
* | 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
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Give the possibility of the client to pass a factoryAndrey Hristov2015-11-241-2/+2
| | |
* | | Don't use the specific translated name but use the macro for thisAndrey Hristov2015-11-171-1/+1
| | |
* | | More const and moved the declaration of php_mysqlnd_scramble() to mysqlnd_auth.hAndrey Hristov2015-11-171-5/+5
| | |
* | | MNDR:Andrey Hristov2015-11-121-1/+3
| | | | | | | | | | | | - move things out of mysqlnd_priv.h
* | | MNDR:Andrey Hristov2015-11-121-25/+23
| | | | | | | | | | | | - remove inclusion of uneeded headers
* | | MNDR:Andrey Hristov2015-11-121-9/+9
| | | | | | | | | | | | - better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)
* | | MNDR:Andrey Hristov2015-11-121-25/+25
| | | | | | | | | | | | | | | - 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-5/+42
| | | | | | | | | | | | | | | | | | | | | - 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-1/+3
| | | | | | | | | | | | - make the connection state a class
* | | MNDR:Andrey Hristov2015-11-121-32/+13
| | | | | | | | | | | | - make MYSQLND_ERROR_INFO a class
* | | MDNR:Andrey Hristov2015-11-121-1/+4
| | | | | | | | | | | | | | | - make MYSQLND_UPSERT_STATUS more like an object that a simple structure Still use macros to make updates simple
* | | MDNR:Andrey Hristov2015-11-121-0/+1
| | | | | | | | | | | | - Refactor the command factory. Let the factory be exchangeable.
* | | MNDR:Andrey Hristov2015-11-121-1/+2
| | | | | | | | | | | | - Inject the object factory
* | | MNDR:Andrey Hristov2015-11-121-9/+10
| | | | | | | | | | | | | | | | | | - 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-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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-8/+8
|/ / | | | | | | | | - Rename MYSQLND_PROTOCOL to MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY - Rename other symbols related to MYSQLND_PROTOCOL accordingly
* | Use Zend MM to keep statistic of non-persistent connections ↵Dmitry Stogov2015-09-181-2/+2
| | | | | | | | (calloc/free->pecalloc/pefree)
* | cleanup the mod version macros, round 2Anatol Belski2015-03-231-1/+1
| |
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-25/+25
| |
* | remove fetches from mysqlndkrakjoe2014-09-261-3/+1
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Merge branch 'PHP-5.4' into PHP-5.5Xinchen Hui2013-01-061-1/+1
|\
| * bump yearXinchen Hui2013-01-061-1/+1
| |
* | Merge branch 'PHP-5.4' into PHP-5.5Anatoliy Belsky2012-12-131-0/+2
|\ \ | |/ | | | | | | * PHP-5.4: Fixed mysqlnd compilation in debug mode on windows