summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-5.4' into PHP-5.5Xinchen Hui2013-01-061-1/+1
|\
| * Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2013-01-061-1/+1
| |\
| | * bump yearXinchen Hui2013-01-061-1/+1
| | |
* | | Merge branch 'PHP-5.4'Andrey Hristov2012-10-311-1/+1
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.3' into PHP-5.4Andrey Hristov2012-10-311-1/+1
| |\ \ | | |/
| | * read 1 instead of 2 bytes. The next 2 bytes are 2 and thus not a problemAndrey Hristov2012-10-311-1/+1
| | |
| | * assertAndrey Hristov2012-02-021-1/+5
| | |
| | * - Year++Felipe Pena2012-01-011-1/+1
| | |
| | * - Move the field access behind the checkJohannes Schlüter2011-05-171-2/+1
| | | | | | | | | | | | | | | | | | # Only called from one place where the connection is checked, but # playing safe, again (parfait)
| | * remove unneeded includesAndrey Hristov2011-03-221-1/+0
| | |
| | * - Year++Felipe Pena2011-01-011-1/+1
| | |
| | * two new statsAndrey Hristov2010-11-051-3/+6
| | |
| | * rename parameter name - should not shadow the global symbol allocaAndrey Hristov2010-10-051-23/+23
| | |
| | * add some safe castsAndrey Hristov2010-10-051-2/+2
| | |
| | * fix typesAndrey Hristov2010-10-051-2/+2
| | |
| | * fix two more warningsAndrey Hristov2010-10-041-1/+1
| | |
| | * WS fixesAndrey Hristov2010-09-231-2/+2
| | |
| | * Allocate memory in a burst mode, and later use it. IncreasesAndrey Hristov2010-08-121-14/+22
| | | | | | | | | | | | | | | | | | | | | | | | locality of the data. Also use MYSQLND_INC_CONN_STATISTIC in one place, instead of two, thus removing code duplication from macro expansion - less code to fit in the instruction cache.
| | * Switch from using PHP_MAJOR_VERSION to separate define forAndrey Hristov2010-08-121-4/+4
| | | | | | | | | | | | | | | | | | unicode. Unicode is no more, but these are "bookmarks" where to change mysqlnd, if Unicode becomes trendy again.
| | * Fix sprintf modifiers all around the place. In most casesAndrey Hristov2010-06-211-23/+22
| | | | | | | | | | | | | | | | | | %u should be used. Where size_t is used then MYSQLND_SZ_T_SPEC should be the modifier
| | * fix valgrind warnings on 64bit, thread_is is strictly 32bitAndrey Hristov2010-06-211-1/+1
| | |
| | * fix type mismatch, this is fresh misunderstandingAndrey Hristov2010-06-181-1/+1
| | |
| | * split mysqlnd_connect() in two parts, one doing the authorizationAndrey Hristov2010-06-171-15/+0
| | |
| | * Handle problems in the row_decoder, return type used to be void,Andrey Hristov2010-05-311-5/+17
| | | | | | | | | | | | | | | now it can return on problems.
| | * Updating test to reflect the latest and more verbose mysqlnd error messages, ↵Ulf Wendel2010-05-311-5/+5
| | | | | | | | | | | | updating mysqlnd error message as well.
| | * Access memory which was really allocatedAndrey Hristov2010-05-251-25/+48
| | |
| | * Export MYSQLND_PROTOCOL methodsAndrey Hristov2010-05-141-11/+26
| | |
| | * OOM fixesAndrey Hristov2010-05-141-1/+9
| | |
| | * OOM stability fixesAndrey Hristov2010-05-041-7/+18
| | |
| | * Handle OOM in block_alloc_get_chunk, and also in the callerAndrey Hristov2010-05-031-0/+4
| | | | | | | | | | | | | | | in mysqlnd_wireprotocol.c
| | * Remove unused parameterAndrey Hristov2010-05-031-2/+2
| | |
| | * Handle OOM when resizing blocks during data fetchAndrey Hristov2010-05-031-1/+5
| | |
| | * Fix crash if OOM and USE_ZEND_ALLOC=0Andrey Hristov2010-04-291-1/+5
| | |
| | * Fixed few buffer overflows reported by Stefan Esser.Andrey Hristov2010-04-281-17/+34
| | |
| | * const-ify fieldsAndrey Hristov2010-04-281-5/+4
| | |
| | * Hardening the reads of mysqlnd.Andrey Hristov2010-04-201-45/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All packets but the row data packet are read into preallocated buffer, either on the stack or on the heap (cmd_buffer). The size of the buffer is always checked to skip buffer overruns. Only up to the size of the buffer is stored into the buffer but packet->header.size has the size of all data sent. In this case network layer bails. This patch hardenes the reads, so if packets are malformed and shorter than they should be there will be no further reads in the buffer. In short, detection of malformed packets.
| | * put the trigger in the right placeAndrey Hristov2010-04-201-1/+1
| | |
| | * It is possible that change user tries an user who has old password.Andrey Hristov2010-04-201-0/+1
| | | | | | | | | | | | | | | Instead of error message that doesn't say much there is more information now.
| | * - Fix copyrightsFelipe Pena2010-04-201-2/+2
| | |
| | * Last batch of int/uint comparison fixesAndrey Hristov2010-04-151-3/+3
| | |
| | * More int/uint comparison warning fixesAndrey Hristov2010-04-151-8/+8
| | |
| | * CS + WS changesAndrey Hristov2010-04-151-43/+43
| | |
| | * Fix for bug#49234 method not found ssl_setAndrey Hristov2010-04-151-23/+25
| | | | | | | | | | | | | | | Patch was tested and compiles on Windows. (Thanks Kalle)
| | * Fixint INT_AND_FLOAT_AS native. It was working ok on 64bit butAndrey Hristov2010-04-081-5/+4
| | | | | | | | | | | | | | | | | | | | | because on 32bit SIZEOF_LONG is 4 and INT64 from MySQL is 8 everything was converted to string, even if it was able to put it in a long. This closes Request #50651 Native type cast returns wrong result
| | * Recommit with an Windows build fix:Andrey Hristov2010-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
| | * - revert revision 297277, break the builds (declaration must go 1st, size of ↵Pierre Joye2010-04-011-1/+1
| | | | | | | | | | | | void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3
| | * Fix inconsistenciesAndrey Hristov2010-04-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
| | * Make it coupled - what is allocated with mnd_ should be freedAndrey Hristov2010-03-291-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | with mnd_ and vice versa. Added mnd_pestrndup and mnd_pestrdup, which wrap the normal calls to be able to track this calls. Fixed some failing tests.
| | * Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sockAndrey Hristov2010-03-261-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | as it is in when compiled from source and the default for mysqlnd. SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode (ext/mysql and ingres) needs the socket. Fix possible crashes in mysqlnd. When packets are shorter, functions should return error.
| | * allow persistency of PSAndrey Hristov2010-03-121-3/+4
| | |