summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix [-Wundef] warning in MySQLnd extensionGeorge Peter Banyard2020-05-181-1/+1
|
* Merge branch 'PHP-7.4'Nikita Popov2020-04-161-5/+5
|\ | | | | | | | | * PHP-7.4: Fix MySQL local infile / attr handling on big endian systems
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-04-161-5/+5
| |\ | | | | | | | | | | | | * PHP-7.3: Fix MySQL local infile / attr handling on big endian systems
| | * Fix MySQL local infile / attr handling on big endian systemsguirish2020-04-161-5/+5
| | | | | | | | | | | | | | | | | | Make sure pointer types match what is used by libmysql everywhere. Closes GH-5380.
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / | | | | | | Closes GH-4732.
* | Fix mysqlnd memory leakNikita Popov2019-06-281-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The actual leak is observed in ext/pdo_mysql/tests/bug_74376.phpt. The persistent connection leaks because a refcount decrement on a result is missed. The refcount decrement is missed because free_result_contents is used, rather than free_result. Looking at other uses of free_result_contents, it looks like they could also suffer from this problem. Apart from one case, free_result_contents is always used to release the result entirely (I've adjusted the one differing case to only free meta), so I'm moving most of the logic from free_result into free_result_contents. The only difference is now that free_result will skip_result first.
* | Merge branch 'PHP-7.3' into PHP-7.4Dmitry Stogov2019-02-121-0/+9
|\ \ | |/ | | | | | | * PHP-7.3: Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)
| * Fixed bug #77599 (Unbuffered queries; native prepared statements memory leak)Dmitry Stogov2019-02-121-0/+9
| |
* | 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-10/+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.
* | Implement typed propertiesNikita Popov2019-01-111-37/+6
| | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* | Simplify the command factoryAndrey Hristov2019-01-071-7/+7
| | | | | | | | | | | | | | | | 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.
* | Drop WE_DONT_COPY_IN_BUFFERED_AND_UNBUFFERED_BECAUSEOF_IS_REFNikita Popov2018-09-221-83/+15
|/ | | | And perform some code cleanups this allows.
* Use zval_ptr_dtor() to replace bound variables (original values nay be ↵Dmitry Stogov2018-07-051-4/+4
| | | | circular structures).
* Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | 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-5/+13
|
* Cleanup. Make difference between MYSQLND_ROW_BUFFER and ↵Dmitry Stogov2017-11-151-12/+12
| | | | MYSQLND_MEMORY_POOL_CHUNK (the last one is completely removed).
* Embeded zend_list into st_mysqlnd_error_info, to avoid extra ↵Dmitry Stogov2017-11-151-5/+1
| | | | allocation/deallocation.
* Run mysqlmd commands in one step (without separate create/run/free).Dmitry Stogov2017-11-141-45/+17
|
* Use stack-allocated packets.Dmitry Stogov2017-11-141-56/+40
|
* Made "result", "statement" and "last_message" to always use Zend MM heap. ↵Dmitry Stogov2017-11-021-21/+20
| | | | (even for persistent connections these entities don't relive request boundary)
* Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-04-071-2/+2
|\ | | | | | | | | | | | | | | * PHP-7.0: Fix invalid free of persistent results on error/connection loss in mysqlnd (bug 74376) Conflicts: ext/mysqlnd/mysqlnd_ps.c
| * Fix invalid free of persistent results on error/connection loss in mysqlnd ↵Yussuf Khalil2017-04-051-2/+2
| | | | | | | | (bug 74376)
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-121-2/+3
|\ \ | |/
| * Fix bug #69899rfussenegger2017-01-121-2/+3
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Fix compiler warnings in mysqlndKalle Sommer Nielsen2016-04-031-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
| |
* | Move free_chunk and resize_chunk into memory poolNikita Popov2016-02-221-3/+6
| | | | | | | | | | 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
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Merge branch 'PHP-7.0'Xinchen Hui2015-11-271-0/+2
|\ \ \ | |/ /
| * | Fixed bug #70949 (SQL Result Sets With NULL Can Cause Fatal Memory Errors)Xinchen Hui2015-11-271-0/+2
| | |
* | | MNDR:Andrey Hristov2015-11-121-206/+193
| | | | | | | | | | | | | | | - 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-3/+0
| | | | | | | | | | | | - remove unused macros
* | | MNDR:Andrey Hristov2015-11-121-0/+2
| | | | | | | | | | | | - move things out of mysqlnd_priv.h
* | | MNDR:Andrey Hristov2015-11-121-1/+1
| | | | | | | | | | | | | | | - move from char* + len to MYSQLND_STRING - add some more const modifiers
* | | MNDR:Andrey Hristov2015-11-121-3/+1
| | | | | | | | | | | | - better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)
* | | MNDR:Andrey Hristov2015-11-121-5/+5
| | | | | | | | | | | | | | | - 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-64/+52
| | | | | | | | | | | | - clean up some things
* | | MNDR:Andrey Hristov2015-11-121-3/+1
| | | | | | | | | | | | | | | - now send_command_handle_response() also doesn't depend directly on MYSQLND_CONN_DATA
* | | MNDR:Andrey Hristov2015-11-121-4/+2
| | | | | | | | | | | | | | | - pass connection closer and its context - remove unused parameter
* | | MNDR:Andrey Hristov2015-11-121-16/+16
| | | | | | | | | | | | - rename the macro for updating the connection state
* | | MNDR:Andrey Hristov2015-11-121-21/+21
| | | | | | | | | | | | - Remove the SET_STMT_ERROR macro
* | | MNDR:Andrey Hristov2015-11-121-69/+69
| | | | | | | | | | | | - make MYSQLND_ERROR_INFO a class