summaryrefslogtreecommitdiff
path: root/ext/mysqlnd
Commit message (Collapse)AuthorAgeFilesLines
* Add support for MySQL 8's Unicode typesJohannes Schlüter2017-04-141-0/+47
|
* Fix invalid free of persistent results on error/connection loss in mysqlnd ↵Yussuf Khalil2017-04-051-2/+2
| | | | (bug 74376)
* Fixed bug #74021andrewnester2017-02-121-4/+4
|
* Fix bug #69899rfussenegger2017-01-121-2/+3
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-0437-37/+37
|
* Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVEvanviegen2017-01-021-2/+8
| | | | | | Fixes bug #73800 news entry for PR #2250
* Fix off by 1 problem.Andrey Hristov2016-12-122-3/+29
| | | | | | | | | | | | 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
|
* Remove typoXinchen Hui2016-03-171-1/+0
|
* More email fixingAndrey Hristov2016-03-163-3/+3
|
* Fix emails in headers. @mysql.com addresses are no more since many years.Andrey Hristov2016-03-1637-153/+113
|
* Eliminate usages of _PP macrosNikita Popov2016-03-031-14/+0
| | | | | | | | | | | | | These are either in debug code (fix them), commented out (drop them) or in dead compatibility macros (drop them). One usage was in php_stream_get_from_zval(), which we have not used since at least PHP 5.2 and, judging from the fact that nobody complained about it causing compile errors in PHP 7, nobody else uses it either, so drop it. There are still remaining uses in mysqli embedded and odbc birdstep. These probably need to be dropped outright.
* Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-032-2/+2
| | | | Also re bug #71575.
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-0137-37/+37
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-0138-38/+38
| |
* | Fixed bug #70949 (SQL Result Sets With NULL Can Cause Fatal Memory Errors)Xinchen Hui2015-11-271-0/+2
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-11-161-0/+4
|\ \ | |/
| * News for fixed bug #68344Andrey Hristov2015-11-161-0/+4
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-161-4/+0
|\ \ | |/ | | | | | | Conflicts: ext/mysql/php_mysql.c
| * Fixed bug #68077 (LOAD DATA LOCAL INFILE / open_basedir restriction)Xinchen Hui2015-11-161-4/+0
| | | | | | | | Actually, this only be fixed if php uses mysqlnd
* | Fixed memory leak in php_stream_context_set_option()Dmitry Stogov2015-10-291-0/+5
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-10-274-9/+60
|\ \ | |/
| * Another Fix for Bug #68344 MySQLi does not provide way to disable peer ↵Andrey Hristov2015-10-274-9/+61
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-10-221-7/+2
|\ \ | |/
| * Improve fix for Bug #68344 MySQLi does not provide way to disable peer ↵Andrey Hristov2015-10-221-7/+2
| | | | | | | | certificate validation
* | Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-10-211-1/+7
|\ \ | |/
| * Fix for Bug #68344 MySQLi does not provide way to disable peer certificate ↵Andrey Hristov2015-10-211-1/+7
| | | | | | | | validation
* | Merge branch 'PHP-5.6' into PHP-7.0Andrey Hristov2015-09-251-2/+4
|\ \ | |/
| * Fixed bug #70572 segfault in mysqlnd_connectAndrey Hristov2015-09-251-2/+4
| |
| * Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-235-0/+13
| |
* | Fix for Bug #70384 mysqli_real_query(): Unknown type 245 sent by the serverAndrey Hristov2015-09-235-0/+13
| |
* | Use Zend MM to keep statistic of non-persistent connections ↵Dmitry Stogov2015-09-185-16/+16
| | | | | | | | (calloc/free->pecalloc/pefree)
* | Merge branch 'PHP-5.6'Christoph M. Becker2015-09-091-0/+23
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fix #70456: mysqlnd doesn't activate TCP keep-alive when connecting to a server Resolved conflicts: ext/mysqlnd/mysqlnd_net.c
| * Fix #70456: mysqlnd doesn't activate TCP keep-alive when connecting to a serverSergei Turchanov2015-09-091-0/+23
| | | | | | | | | | libmysqlclient activates TCP keep-alive when connecting to a server. PHP mysqlnd extension must do the same to maintain compatibility.
| * 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
| | | |/
* | | | remove TSRMLS_*Anatol Belski2015-08-021-1/+1
| | | | | | | | | | | | | | | | either remains or merged in from PHP5
* | | | switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
| | | |
* | | | Fix mysqlnd warningsNikita Popov2015-07-172-4/+3
| | | |
* | | | Fix bug #69669 (mysqlnd is vulnerable to BACKRONYM)Stanislav Malyshev2015-07-071-12/+26
| | | |
* | | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-308-29/+29
| | | | | | | | | | | | | | | | semantick changes).
* | | | Improved zend_string API (Francois Laupretre)Dmitry Stogov2015-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit d96eab8d79b75ac83d49d49ae4665f948d15a804 Author: Francois Laupretre <francois@tekwire.net> Date: Fri Jun 26 01:23:31 2015 +0200 Use the new 'ZSTR' macros in the rest of the code. Does not change anything to the generated code (thanks to compat macros) but cleaner. commit b3526439104ac7a89a8e0c79dbebf33b22bd01b8 Author: Francois Laupretre <francois@tekwire.net> Date: Thu Jun 25 13:45:06 2015 +0200 Improve zend_string API Add missing methods
* | | | Fixed Bug #69796 mysqli_stmt::fetch doesn't assign null values to bound ↵Xinchen Hui2015-06-111-0/+2
| | | | | | | | | | | | | | | | variables
* | | | Fixed bug #68887 (resources are not freed correctly)Dmitry Stogov2015-04-082-2/+2
| | | |
* | | | Rename prefixed mysqlnd functions - prefixed with undescore, which wereAndrey Hristov2015-04-074-20/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accessible through a macro. Also removing the access macros. These prefixed functions were used, similarly to many functions in Zend2, because of TSRMLS - the macro was adding the the tsrm pointer to the call. However, as in Zend3 no TSRM pointers are passed down the stack, because of the usage of cached TSRM pointer in a real thread local variable, these macros and prefixed naming have lost their purpose.
* | | | Split mysqlnd_stmt::execute in 2 logical parts :Andrey Hristov2015-04-074-18/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - mysqlnd_stmt::send_execute() which just creates the wire message by using an aux function and sends it to the server - mysqlnd_stmt::parse_execute_respose() which is responsible for handling the bytes sent from the server in response to COM_EXECUTE. This makes it possible to implement finer method overwriting in mysqlnd plugins.
* | | | Add more info to the calls:Andrey Hristov2015-04-074-10/+23
| | | | | | | | | | | | | | | | | | | | - let the callee knows whether it was called directly or indirectly - two NULL zval * parameters for future extension in a pecl plugin