summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_protocol_frame_codec.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-2/+2
| | | | | | | 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: Remove mnd_malloc/free etc.Nikita Popov2020-12-171-2/+2
| | | | | | There were only two uses of non-zmm allocation functions left, which really did not need to use the system allocator. Remove them, and remove the system allocator based APIs.
* Merge branch 'PHP-7.4'Nikita Popov2020-09-181-40/+65
|\ | | | | | | | | | | * PHP-7.4: Fix bug #80107: Handling of large compressed packets Bug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression is enabled
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-09-181-40/+65
| |\ | | | | | | | | | | | | | | | * PHP-7.3: Fix bug #80107: Handling of large compressed packets Bug #80107 Add test for mysqli_query() fails for ~16 MB long query when compression is enabled
| | * Fix bug #80107: Handling of large compressed packetsNikita Popov2020-09-181-40/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's two layers of packet splitting going on. First, packets need to be split into having a payload of exactly 2^24-1 bytes or being the last packet. If the split packet has size between 2^24-5 and 2^24-1 bytes, the compressed packets also needs to be split, though the choice of split doesn't matter here. I'm splitting off the first 8192 bytes, as that's what I observe libmysqlclient to be doing.
* | | Fix [-Wundef] warning in MySQLnd extensionGeorge Peter Banyard2020-05-181-1/+1
| | |
* | | Fix [-Wjump-misses-init] warning in MySQL new driver extensionGeorge Peter Banyard2020-04-181-1/+2
| | |
* | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / | | | | | | Closes GH-4732.
* | Report errors from stream read and write operationsNikita Popov2019-07-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* | 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.
* year++Xinchen Hui2018-01-021-1/+1
|
* Merged allocationsDmitry Stogov2017-11-151-1/+0
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Fix more emailsAndrey Hristov2016-03-161-2/+3
|
* Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
|
* Give the possibility of the client to pass a factoryAndrey Hristov2015-11-241-2/+3
|
* Revert "Add some const-ness to the protocol frame codec"Andrey Hristov2015-11-171-3/+3
| | | | This reverts commit f8c2b459481209c3761a694baa6f38060dc9875a.
* constify parametersAndrey Hristov2015-11-171-1/+1
|
* Bring consistency to the class by renaming the methods too (from theAndrey Hristov2015-11-171-1/+1
| | | | old temporary name)
* Add some const-ness to the protocol frame codecAndrey Hristov2015-11-171-3/+3
|
* mysqlnd refactoring:Andrey Hristov2015-11-171-63/+1
| | | | - move MYSQLND_READ_BUFFER to own file
* mysqlnd refactoring :Andrey Hristov2015-11-161-1/+26
| | | | | - move the command buffer out of the networking code to the protocol frame codec.
* MNDR:Andrey Hristov2015-11-121-9/+9
| | | | - move things out of mysqlnd_priv.h
* MNDR:Andrey Hristov2015-11-121-4/+0
| | | | - remove inclusion of uneeded headers
* MNDR:Andrey Hristov2015-11-121-0/+9
| | | | - move the command factory to own file - mysqlnd_commands.c
* MNDR:Andrey Hristov2015-11-121-33/+33
| | | | - move all data members from MYSQLND_PFC to MYSQLND_PFC_DATA
* MNDR:Andrey Hristov2015-11-121-0/+538
- better name for MYSQLND_PPEC - MYSQLND_PFC (protocol frame codec)